fix(hub): correct _mark_meta_sync NameError in archive seed
seed_symbol_archive and sync_symbol_klines_incremental called undefined _mark_meta. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -723,7 +723,7 @@ def seed_symbol_archive(
|
||||
bars = fetch_remote_5m_range(remote_fetch, sym, start_ms, end_ms)
|
||||
n = upsert_bars_5m(ex_k, sym, bars, db_path=db_path)
|
||||
now = _now_ms()
|
||||
_mark_meta(ex_k, sym, kline_ms=now, seed_complete=True, db_path=db_path)
|
||||
_mark_meta_sync(ex_k, sym, kline_ms=now, seed_complete=True, db_path=db_path)
|
||||
return {"ok": True, "seed_bars": n, "start_ms": start_ms, "end_ms": end_ms}
|
||||
|
||||
|
||||
@@ -756,7 +756,7 @@ def sync_symbol_klines_incremental(
|
||||
bars = fetch_remote_5m_range(remote_fetch, sym, start_ms, end_ms)
|
||||
n = upsert_bars_5m(ex_k, sym, bars, db_path=db_path)
|
||||
now = _now_ms()
|
||||
_mark_meta(ex_k, sym, kline_ms=now, db_path=db_path)
|
||||
_mark_meta_sync(ex_k, sym, kline_ms=now, db_path=db_path)
|
||||
return {"ok": True, "appended": n, "start_ms": start_ms, "end_ms": end_ms}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user