Fix app main and api main scripts
parent
4afecd043b
commit
cd9f98e302
|
@ -39,3 +39,7 @@ def create_app():
|
||||||
docs = SwaggerDoc()
|
docs = SwaggerDoc()
|
||||||
swagger = Swagger(app, template=docs.getDocs())
|
swagger = Swagger(app, template=docs.getDocs())
|
||||||
return app
|
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:
|
if secondsAgo is not None:
|
||||||
loadFromTime = startTime - timedelta(seconds=secondsAgo)
|
loadFromTime = startTime - timedelta(seconds=secondsAgo)
|
||||||
|
|
||||||
#if exclude != 'cce':
|
if exclude != 'cce':
|
||||||
# loadCCE(manager, loadFromTime, year)
|
loadCCE(manager, loadFromTime, year)
|
||||||
#if exclude != 'ccr':
|
if exclude != 'ccr':
|
||||||
# loadCCR(manager, loadFromTime, year)
|
loadCCR(manager, loadFromTime, year)
|
||||||
|
|
||||||
indexUpdates(manager, None)
|
indexUpdates(manager, None)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue