Skip to content

Commit

Permalink
Add task to auto accept some installers
Browse files Browse the repository at this point in the history
  • Loading branch information
strycore committed Feb 27, 2024
1 parent ba9a14f commit 99f66b4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions games/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ def populate_popularity():
game.save(skip_precaching=True)


@app.task
def auto_accept_installers():
for f in models.InstallerDraft.objects.filter(draft=False, user__username="vanstaveren"):
f.accept()


@app.task
def autofix_installers():
"""Automatically fix and cleanup installers"""
Expand Down

0 comments on commit 99f66b4

Please sign in to comment.