fixed linting and tests

This commit is contained in:
Alok Saldanha
2025-11-04 06:57:43 -05:00
parent 903d25763f
commit 3e5accad65
5 changed files with 97 additions and 7 deletions
+2
View File
@@ -332,11 +332,13 @@ def launch():
app.launchtime = current_time_stamp()
app.run(host="0.0.0.0", port=env.gateway_port, debug=False)
# When using servers like Gunicorn or uWSGI, this file is imported rather than run directly.
# As a result, the main() function is never called automatically.
# Therefore, we must initialize the data sources at import time to ensure they are available.
initialize_data_sources()
def main():
"""CLI entry point for Flask development server."""
launch()