Fix app main and api main scripts
parent
4afecd043b
commit
cd9f98e302
|
@ -39,3 +39,7 @@ def create_app():
|
|||
docs = SwaggerDoc()
|
||||
swagger = Swagger(app, template=docs.getDocs())
|
||||
return app
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
create_app()
|
8
main.py
8
main.py
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue