Fix app main and api main scripts

add-new-regnum-params
Mike Benowitz 2019-07-05 14:06:54 -04:00
parent 4afecd043b
commit cd9f98e302
2 changed files with 8 additions and 4 deletions

View File

@ -39,3 +39,7 @@ def create_app():
docs = SwaggerDoc()
swagger = Swagger(app, template=docs.getDocs())
return app
if __name__ == '__main__':
create_app()

View File

@ -20,10 +20,10 @@ def main(secondsAgo=None, year=None, exclude=None, reinit=False):
if secondsAgo is not None:
loadFromTime = startTime - timedelta(seconds=secondsAgo)
#if exclude != 'cce':
# loadCCE(manager, loadFromTime, year)
#if exclude != 'ccr':
# loadCCR(manager, loadFromTime, year)
if exclude != 'cce':
loadCCE(manager, loadFromTime, year)
if exclude != 'ccr':
loadCCR(manager, loadFromTime, year)
indexUpdates(manager, None)