Skip to content

Commit

Permalink
try removing timezone none
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiedemaria committed Aug 19, 2024
1 parent 65dbed0 commit b341c13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -855,13 +855,9 @@ def get_backfills(
)
query = query.where(BulkActionsTable.c.id < cursor_query)
if filters and filters.created_after:
query = query.where(
BulkActionsTable.c.timestamp > filters.created_after.replace(tzinfo=None)
)
query = query.where(BulkActionsTable.c.timestamp > filters.created_after)
if filters and filters.created_before:
query = query.where(
BulkActionsTable.c.timestamp < filters.created_before.replace(tzinfo=None)
)
query = query.where(BulkActionsTable.c.timestamp < filters.created_before)
if limit:
query = query.limit(limit)
query = query.order_by(BulkActionsTable.c.id.desc())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@


class TestPostgresRunStorage(TestRunStorage):
# TestPostgresRunStorage::test_backfill_created_time_filtering
__test__ = True

@pytest.fixture(scope="function", name="storage")
Expand Down

0 comments on commit b341c13

Please sign in to comment.