From 207066e76b2a51ee907a4b4d37ff5b1a70d54400 Mon Sep 17 00:00:00 2001 From: xxm Date: Fri, 21 Aug 2026 03:00:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(server):=20effectiveness=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E7=A7=BB=E5=88=B0app.run()=E4=B9=8B=E5=89=8D(=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D404)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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) +