diff --git a/server.py b/server.py index a645d7cb..07e24df7 100644 --- a/server.py +++ b/server.py @@ -2406,11 +2406,6 @@ def api_docs_read(): return jsonify({"ok": True, "content": f.read_text(encoding="utf-8")}) -if __name__ == "__main__": - port = int(os.environ.get("PORT", 8899)) - print(f"πŸš€ MoFin Dashboard β†’ http://0.0.0.0:{port}") - app.run(host="0.0.0.0", port=port, debug=False) - # ── η­–η•₯θ―„δΌ° API ──────────────────────────────────────── @app.route("/api/research/effectiveness") def api_research_effectiveness(): @@ -2508,3 +2503,10 @@ def api_research_execution_log(): rows = db.execute(query, params).fetchall() db.close() return jsonify([dict(r) for r in rows]) + + +if __name__ == "__main__": + port = int(os.environ.get("PORT", 8899)) + print(f"πŸš€ MoFin Dashboard β†’ http://0.0.0.0:{port}") + app.run(host="0.0.0.0", port=port, debug=False) +