Skip to content

Commit 80d9307

Browse files
authored
Merge pull request #285 from bdach/tachyon-user-count-reporting
Report user counts for tachyon builds
2 parents 585f1c1 + 3a15a78 commit 80d9307

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

osu.Server.Spectator/Database/DatabaseAccess.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ public async Task<IEnumerable<osu_build>> GetAllMainLazerBuildsAsync()
410410
return await connection.QueryAsync<osu_build>(
411411
"SELECT `build_id`, `version`, `hash`, `users` "
412412
+ "FROM `osu_builds` "
413-
+ "WHERE stream_id = 7 AND allow_bancho = 1");
413+
+ "WHERE stream_id IN (7, 17) AND allow_bancho = 1");
414414
}
415415

416416
public async Task<IEnumerable<osu_build>> GetAllPlatformSpecificLazerBuildsAsync()
@@ -420,7 +420,7 @@ public async Task<IEnumerable<osu_build>> GetAllPlatformSpecificLazerBuildsAsync
420420
return await connection.QueryAsync<osu_build>(
421421
"SELECT `build_id`, `version`, `hash`, `users` "
422422
+ "FROM `osu_builds` "
423-
+ "WHERE `stream_id` IS NULL AND `version` LIKE '%-lazer-%' AND `allow_bancho` = 1");
423+
+ "WHERE `stream_id` IS NULL AND (`version` LIKE '%-lazer-%' OR `version` LIKE '%-tachyon-%') AND `allow_bancho` = 1");
424424
}
425425

426426
public async Task UpdateBuildUserCountAsync(osu_build build)

osu.Server.Spectator/Database/IDatabaseAccess.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,12 @@ public interface IDatabaseAccess : IDisposable
166166
Task<bool> GetUserAllowsPMs(int userId);
167167

168168
/// <summary>
169-
/// Returns all available main builds from the lazer release stream.
169+
/// Returns all available main builds from the lazer and tachyon release streams.
170170
/// </summary>
171171
Task<IEnumerable<osu_build>> GetAllMainLazerBuildsAsync();
172172

173173
/// <summary>
174-
/// Returns all known platform-specifc lazer builds.
174+
/// Returns all known platform-specifc lazer and tachyon builds.
175175
/// </summary>
176176
Task<IEnumerable<osu_build>> GetAllPlatformSpecificLazerBuildsAsync();
177177

0 commit comments

Comments
 (0)