Spaces:
Sleeping
Sleeping
UPDATE: exportToDashboard
Browse files
app.py
CHANGED
|
@@ -38,14 +38,5 @@ app.include_router(reportingTool.router, prefix = "/reportingTool", tags = ["Rep
|
|
| 38 |
app.include_router(dashboard.router, prefix = "/dashboard", tags = ["Dashboard"])
|
| 39 |
app.include_router(utilities.router, prefix = "/utils", tags = ["Utilities"])
|
| 40 |
|
| 41 |
-
@app.on_event("startup")
|
| 42 |
-
async def startupEvent():
|
| 43 |
-
params = readYaml("params.yaml")
|
| 44 |
-
_ = replManager.run(params["redisFunctionCode"])
|
| 45 |
-
_ = replManager.run(params["jsonSerializer"])
|
| 46 |
-
_ = replManager.run(params["panelChartDataCode"])
|
| 47 |
-
_ = replManager.run("globals()['__name__'] = '__main__'")
|
| 48 |
-
_ = replManager.run("globals().update(locals())")
|
| 49 |
-
|
| 50 |
if __name__ == "__main__":
|
| 51 |
uvicorn.run("app:app", host = "0.0.0.0", port = 7860, reload = True)
|
|
|
|
| 38 |
app.include_router(dashboard.router, prefix = "/dashboard", tags = ["Dashboard"])
|
| 39 |
app.include_router(utilities.router, prefix = "/utils", tags = ["Utilities"])
|
| 40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
if __name__ == "__main__":
|
| 42 |
uvicorn.run("app:app", host = "0.0.0.0", port = 7860, reload = True)
|