Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ jobs:
cd '${{ env.REMOTE_DIR }}' &&
docker compose -f docker-compose.prod.yml pull &&
docker compose -f docker-compose.prod.yml up -d --remove-orphans
docker compose -f docker-compose.prod.yml up -d --force-recreate nginx
"

# ── 10. HTTPS 검증 ──────────────────────────────────────────────────
Expand Down
4 changes: 3 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,8 @@ def push_candles():
conn.close()
return jsonify({"status": "ok"})

def iso_to_epoch_seconds(t: str) -> int:
return int(datetime.fromisoformat(t).timestamp())

@app.get("/api/stocks/candles")
def api_stocks_candles():
Expand All @@ -631,7 +633,7 @@ def api_stocks_candles():
conn.close()

candles = [{
"time": r[0],
"time": iso_to_epoch_seconds(r[0]),
"open": r[1],
"high": r[2],
"low": r[3],
Expand Down
Loading