Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 89f8c51

Browse files
author
Moon
committedSep 15, 2020
Fixed song add bug with newly created events, rolled back version number
1 parent 77c614c commit 89f8c51

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed
 

‎Shared/Discord/Database/QualifierDatabaseContext.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using Microsoft.EntityFrameworkCore;
22
using System;
3+
using System.Collections.Generic;
34
using System.Linq;
45
using TournamentAssistantShared.Database;
56
using TournamentAssistantShared.Models;
@@ -47,7 +48,7 @@ public QualifierEvent ConvertDatabaseToModel(GameplayParameters[] songs, Event @
4748
Name = @event.InfoChannelName
4849
},
4950
ShowScores = @event.InfoChannelId != 0,
50-
QualifierMaps = songs?.ToArray()
51+
QualifierMaps = songs?.ToArray() ?? new GameplayParameters[] { }
5152
};
5253
}
5354
}

‎Shared/SharedConstructs.cs

+4-6
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ namespace TournamentAssistantShared
88
public static class SharedConstructs
99
{
1010
public const string Name = "TournamentAssistant";
11-
public const string Version = "0.3.1";
12-
public const int VersionCode = 031;
11+
public const string Version = "0.3.0";
12+
public const int VersionCode = 030;
1313
public static string Changelog =
1414
"0.0.1: Begin assembling UI for coordinator panels\n" +
15-
"0.1.1: Implemented versioning system\n" +
15+
"0.1.1: Implemented versioning system\n" +
1616
"0.1.2: Fixed song download bug\n" +
1717
"0.1.3: Recreated song detail view, refactored tournament flowcoordinator into room flowcoordinator, added match destroying / player leaving to back button on TournamentAssistant side\n" +
1818
"0.1.4: Added Teams\n" +
@@ -26,9 +26,7 @@ public static class SharedConstructs
2626
"0.2.2: Bugfixes, added DisableFail\n" +
2727
"0.2.5: Added Banned Mods checking, bugfixes\n" +
2828
"0.2.8: Fixed server config overwriting, added IPV6 support, behind-the-scenes work on Qualifiers\n" +
29-
"0.3.0: Finished implementing qualifiers and decentralized network\n" +
30-
"0.3.1: Tiny patch to fix adding songs to empty servers\n";
31-
29+
"0.3.0: Finished implementing qualifiers and decentralized network\n";
3230
public enum BeatmapDifficulty
3331
{
3432
Easy,

0 commit comments

Comments
 (0)
Please sign in to comment.