fixes #82 twitter api walls

This commit is contained in:
msramalho
2023-07-02 18:42:43 +02:00
parent b7889a182d
commit 8005a1955a
2 changed files with 30 additions and 11 deletions

View File

@@ -67,7 +67,7 @@ class GsheetsDb(Database):
batch_if_valid('title', item.get_title())
batch_if_valid('text', item.get("content", ""))
batch_if_valid('timestamp', item.get_timestamp())
batch_if_valid('hash', media.get("hash", "not-calculated"))
if media: batch_if_valid('hash', media.get("hash", "not-calculated"))
# merge all pdq hashes into a single string, if present
pdq_hashes = []