diff --git a/asg_form/Controllers/Com.cs b/asg_form/Controllers/Com.cs index 9199611..1f0d5eb 100644 --- a/asg_form/Controllers/Com.cs +++ b/asg_form/Controllers/Com.cs @@ -37,7 +37,7 @@ namespace asg_form.Controllers { TestDbContext testDb = new TestDbContext(); string chinaname = user.chinaname; - var teamgame = testDb.team_Games.Where(a => a.commentary.IndexOf(chinaname) >= 0).Select(a => new { a.id, a.team1_name, a.team2_name, a.bilibiliuri, a.commentary, a.referee, a.opentime,a.tag,a.belong}).ToList(); + var teamgame = testDb.team_Games.Where(a => a.commentary.IndexOf(chinaname) >= 0).Select(a => new { a.id, a.team1_name, a.team2_name, a.bilibiliuri, a.commentary, a.referee ,a.opentime}).ToList(); return JsonConvert.SerializeObject(teamgame); } diff --git a/asg_form/Controllers/InviteReferee.cs b/asg_form/Controllers/InviteReferee.cs new file mode 100644 index 0000000..7da09bb --- /dev/null +++ b/asg_form/Controllers/InviteReferee.cs @@ -0,0 +1,7 @@ +namespace asg_form.Controllers +{ + public class InviteReferee + { + + } +} diff --git a/asg_form/Controllers/excel.cs b/asg_form/Controllers/excel.cs index dc1f5d7..383a530 100644 --- a/asg_form/Controllers/excel.cs +++ b/asg_form/Controllers/excel.cs @@ -235,7 +235,7 @@ namespace asg_form.Controllers { using(TestDbContext ctx =new TestDbContext()) { - object data = userManager.Users.Select(a => new {a.UserName,a.chinaname,a.Email,a.officium}).Where(a => a.officium != null).GroupBy(a => a.officium).ToList(); + object data = userManager.Users.Select(a => new {a.Id,a.UserName,a.chinaname,a.Email,a.officium}).Where(a => a.officium != null).GroupBy(a => a.officium).ToList(); return data; } diff --git a/asg_form/Program.cs b/asg_form/Program.cs index ce76294..5429906 100644 --- a/asg_form/Program.cs +++ b/asg_form/Program.cs @@ -22,7 +22,6 @@ using System.Text; Console.WriteLine("\n _____ _________ ________ \n / _ \\ / _____// _____/ \n / /_\\ \\ \\_____ \\/ \\ ___ \n/ | \\/ \\ \\_\\ \\\n\\____|__ /_______ /\\______ /\n \\/ \\/ \\/ \n__________ __ ___________ .___\n\\______ \\_____ ____ | | __\\_ _____/ ____ __| _/\n | | _/\\__ \\ _/ ___\\| |/ / | __)_ / \\ / __ | \n | | \\ / __ \\\\ \\___| < | \\ | \\/ /_/ | \n |______ /(____ /\\___ >__|_ \\/_______ /___| /\\____ | \n \\/ \\/ \\/ \\/ \\/ \\/ \\/ "); var builder = WebApplication.CreateBuilder(args); - //builder.AddServiceDefaults(); // Add services to the container.