Skip to content

Commit

Permalink
More autofix adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
strycore committed Apr 3, 2024
1 parent be99444 commit 2d7e119
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions games/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,14 @@
"Scummvm",
"file",
"install",
"enable_flash",
"year",
"fifiles",
"task",
"pulse_latency",
"format",
"dst",
"game_slug",
"name",
"-Wine",
)

INVALID_INSTALLER_KEYS_DELETE = (
Expand Down Expand Up @@ -191,6 +196,7 @@ def autofix_installers():
stats = defaultdict(int)
stats["invalid_keys"] = defaultdict(int)
stats["invalid_installers"] = set()
stats["steam_wanabee"] = set()

for installer in models.Installer.objects.all():
stats["total"] += 1
Expand Down Expand Up @@ -248,7 +254,7 @@ def autofix_installers():
and list(script["game"].keys()) == ["appid"]
and installer.runner.slug != "steam"
):
stats["steam_wanabee"] += 1
stats["steam_wanabee"].add(installer.slug)
if installer.runner.slug in OBSOLETE_RUNNERS:
stats["obsolete_runners"] += 1
return stats
Expand Down

0 comments on commit 2d7e119

Please sign in to comment.