1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:33:30 +08:00

Merge pull request #29711 from smoogipoo/add-played-acronyms

Add 'yes'/'no' acronyms to the `played=` filter
This commit is contained in:
Dean Herbert 2024-09-06 18:08:37 +09:00 committed by GitHub
commit 04d133832f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -633,11 +633,15 @@ namespace osu.Game.Tests.NonVisual.Filtering
new object[] { "0", DateTimeOffset.Now, false },
new object[] { "false", DateTimeOffset.MinValue, true },
new object[] { "false", DateTimeOffset.Now, false },
new object[] { "no", DateTimeOffset.MinValue, true },
new object[] { "no", DateTimeOffset.Now, false },
new object[] { "1", DateTimeOffset.MinValue, false },
new object[] { "1", DateTimeOffset.Now, true },
new object[] { "true", DateTimeOffset.MinValue, false },
new object[] { "true", DateTimeOffset.Now, true },
new object[] { "yes", DateTimeOffset.MinValue, false },
new object[] { "yes", DateTimeOffset.Now, true },
};
[Test]

View File

@ -159,10 +159,12 @@ namespace osu.Game.Screens.Select
switch (value)
{
case "1":
case "yes":
result = true;
return true;
case "0":
case "no":
result = false;
return true;