Skip to content

Commit

Permalink
chore: fix get_last_volume_time query
Browse files Browse the repository at this point in the history
  • Loading branch information
robcxyz committed Nov 5, 2024
1 parent d51667e commit 59237cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion balanced_backend/cron/pool_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def get_last_volume_time(session: 'Session', table: PoolSeriesTableType) -> int:
query = select(table).where(
table.chain_id == settings.CHAIN_ID
).where(
table.head != True
(table.head.is_(None)) | (table.head == False)
).order_by(table.timestamp.desc()).limit(1).limit(1)

result = session.execute(query)
Expand Down

0 comments on commit 59237cd

Please sign in to comment.