Skip to content

Commit

Permalink
TzKT fix: add changelog, replace ge with gt (#866)
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout authored Oct 10, 2023
1 parent b930868 commit 7d0a866
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic
### Fixed

- cli: Fixed `schema wipe` command for SQLite databases.
- tezos.tzkt: Fixed regression in `get_transactions` method pagination.

## [7.0.1] - 2023-09-30

Expand Down
6 changes: 4 additions & 2 deletions src/dipdup/datasources/tezos_tzkt.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,15 +713,17 @@ async def get_transactions(
params = self._get_request_params(
first_level=first_level,
last_level=last_level,
# NOTE: This is intentional
offset=None,
limit=limit,
select=TRANSACTION_OPERATION_FIELDS,
values=True,
sort='level',
status='applied',
)

# TODO: TzKT doesn't support sort+cr currently
if offset is not None:
params['id.ge'] = offset
params['id.gt'] = offset

if addresses and not code_hashes:
params[f'{field}.in'] = ','.join(addresses)
Expand Down

0 comments on commit 7d0a866

Please sign in to comment.