Graphs and tables for your Spotify account.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
346 B

  1. from django.core.management.base import BaseCommand, CommandError
  2. from api.utils import parse_history
  3. from login.models import User
  4. class Command(BaseCommand):
  5. help = 'Update history for users who requested it'
  6. def handle(self, *args, **options):
  7. user_id = "polarbier"
  8. parse_history(User.objects.get(id=user_id).secret)