def download_games(request, account_id): if not utils.is_public_account(account_id)[0]: return account = Account.objects.get(account_id=int(account_id)) tasks.download_games(account) return HttpResponse()
def handle(self, *args, **options): for account_id in INTERESTED_ACCOUNTS_IDS.value(): a = Account.objects.get(account_id=account_id) download_games(a)