Added admin command to scan personal history (#58)
Reverted exported history file to exclude timestamp. Simplified logging for scanning user history.
This commit is contained in:
10
api/management/commands/update-history.py
Normal file
10
api/management/commands/update-history.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from django.core.management.base import BaseCommand, CommandError
|
||||
from api.utils import parse_history
|
||||
from login.models import User
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = 'Update history for users who requested it'
|
||||
|
||||
def handle(self, *args, **options):
|
||||
user_id = "polarbier"
|
||||
parse_history(User.objects.get(id=user_id).secret)
|
||||
Reference in New Issue
Block a user