dev@locazia: fix misprint
This commit is contained in:
parent
db2b6eff6f
commit
667d0f44a8
|
|
@ -45,6 +45,5 @@ TESTNET = bool(int(os.getenv('TESTNET', '0')))
|
|||
TONCENTER_HOST = os.getenv('TONCENTER_HOST', 'https://toncenter.com/api/v1/')
|
||||
TONCENTER_API_KEY = os.getenv('TONCENTER_API_KEY')
|
||||
|
||||
# 706a0565aae1e89968aea905043f1b6e150a5b80130ce92a57b4904c82865b43
|
||||
MY_PLATFORM_CONTRACT = 'EQAGbwW0sFghy9N4MQ0Ozp8YOIr0lcMI8J5kbbydFnQtheMY'
|
||||
MY_FUND_ADDRESS = 'UQDarChHFMOI2On9IdHJNeEKttqepgo0AY4bG1trw8OAAwMY'
|
||||
|
|
|
|||
|
|
@ -30,7 +30,8 @@ async def indexer_loop(platform_found: bool, seqno: int) -> [bool, int]:
|
|||
last_known_index = session.query(StoredContent).filter(
|
||||
StoredContent.type == "onchain/content"
|
||||
).order_by(StoredContent.onchain_index.desc()).first()
|
||||
last_known_index = last_known_index.onchain_index if last_known_index >= 0 else 0
|
||||
last_known_index = last_known_index.onchain_index if last_known_index else 0
|
||||
last_known_index = max(last_known_index, 0)
|
||||
make_log("Indexer", f"Last known index: {last_known_index}", level="debug")
|
||||
next_item_index = last_known_index + 1
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue