import_from_lichess.py 322 B

12345678910
  1. from django.core.management.base import BaseCommand
  2. from vrobbler.apps.boardgames.sources.lichess import (
  3. import_chess_games_for_all_users,
  4. )
  5. class Command(BaseCommand):
  6. def handle(self, *args, **options):
  7. count = len(import_chess_games_for_all_users())
  8. print(f"Imported {count} Lichess games")