cast timestamp to integer before querying

This commit is contained in:
Victor Shyba 2019-01-31 01:09:57 -03:00
parent ffc7fc0793
commit 21f2b2dcd7

View file

@ -274,7 +274,7 @@ class SQLiteStorage(SQLiteMixin):
def get_blobs_to_announce(self):
def get_and_update(transaction):
timestamp = self.loop.time()
timestamp = int(self.loop.time())
if self.conf.announce_head_and_sd_only:
r = transaction.execute(
"select blob_hash from blob "