mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
User should be a string/bytes when reindexing stories.
This commit is contained in:
parent
593b736c26
commit
2c96b83c36
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class Command(BaseCommand):
|
|||
print("Missing user. Did you want to reindex everything? Use -R.")
|
||||
return
|
||||
|
||||
if re.match(r"([0-9]+)", options['user']):
|
||||
if re.match(r"([0-9]+)", str(options['user'])):
|
||||
user = User.objects.get(pk=int(options['user']))
|
||||
else:
|
||||
user = User.objects.get(username=options['user'])
|
||||
|
|
Loading…
Add table
Reference in a new issue