mirror of
https://github.com/logos-blockchain/logos-blockchain-block-explorer-template.git
synced 2026-01-02 05:03:07 +00:00
9 lines
349 B
Python
9 lines
349 B
Python
from datetime import datetime, timedelta
|
|
|
|
|
|
# Increments a timestamp by the smallest possible unit (1 microsecond), in terms of DB precision.
|
|
# This is used to avoid returning the same record again when querying for updates.
|
|
# FIXME: Hardcoded
|
|
def increment_datetime(timestamp: datetime) -> datetime:
|
|
return timestamp + timedelta(microseconds=1)
|