14 lines
460 B
Python
14 lines
460 B
Python
from django.core.management.base import BaseCommand
|
|
|
|
from games.tasks import schedule_steam_refresh
|
|
|
|
|
|
class Command(BaseCommand):
|
|
help = "Start the periodic Steam store refresh loop (no-op if already running)"
|
|
|
|
def handle(self, *args, **options):
|
|
if schedule_steam_refresh():
|
|
self.stdout.write(self.style.SUCCESS("Steam store refresh scheduled"))
|
|
else:
|
|
self.stdout.write("Steam store refresh already scheduled")
|