User should be a string/bytes when reindexing stories.

This commit is contained in:
Samuel Clay 2022-12-26 22:16:04 -05:00
parent 1065c964fd
commit 593b736c26

View file

@ -7,7 +7,7 @@ from apps.reader.models import UserSubscription
class Command(BaseCommand):
def add_arguments(self, parser):
parser.add_argument("-u", "--user", dest="user", nargs=1, help="Specify user id or username")
parser.add_argument("-u", "--user", dest="user", nargs=1, type=str, help="Specify user id or username")
parser.add_argument("-R", "--reindex", dest="reindex", action="store_true", help="Drop index and reindex all stories.")