Fix metrics.json path to persistent data volume (/app/data)
All checks were successful
Build and Deploy MoneyMaker / build-and-deploy (push) Successful in 12m21s
All checks were successful
Build and Deploy MoneyMaker / build-and-deploy (push) Successful in 12m21s
This commit is contained in:
@@ -83,7 +83,7 @@ ALERT_THRESHOLD = 0.35 # signal_score > this → alert
|
||||
# Claude metrics
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
METRICS_FILE = Path(__file__).parent / "metrics.json"
|
||||
METRICS_FILE = Path(os.getenv("DATA_DIR", str(Path(__file__).parent / "data"))) / "metrics.json"
|
||||
|
||||
# Pricing: Claude 3 Haiku — https://www.anthropic.com/pricing
|
||||
_PRICE_INPUT_PER_TOKEN = 0.25 / 1_000_000 # $0.25 per MTok
|
||||
|
||||
@@ -28,7 +28,7 @@ from report import _c25_day_return, _unrealised_pnl, _realised_pnl, _total_fees,
|
||||
|
||||
CAPITAL = 10_000
|
||||
LOG_DIR = Path(os.getenv("LOG_DIR", str(Path(__file__).parent / "logs")))
|
||||
METRICS_FILE = Path(__file__).parent / "metrics.json"
|
||||
METRICS_FILE = Path(os.getenv("DATA_DIR", str(Path(__file__).parent / "data"))) / "metrics.json"
|
||||
REFRESH = 60 # seconds
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
Reference in New Issue
Block a user