Fix argv mistake

This commit is contained in:
Kevin Chung
2018-04-15 16:18:16 -04:00
parent f4d89e25ab
commit 5cc89e47bb

View File

@@ -8,7 +8,7 @@ import sys
app = create_app() app = create_app()
with app.app_context(): with app.app_context():
if len(sys.argv) == 2: if len(sys.argv) == 3:
segments = sys.argv[2].split(',') segments = sys.argv[2].split(',')
else: else:
segments = None segments = None