feat: re-enable HASH on gsheet

This commit is contained in:
msramalho
2023-05-09 11:17:44 +01:00
parent 8f3d4e05c3
commit 875e1de589
4 changed files with 12 additions and 4 deletions

View File

@@ -64,6 +64,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 (screenshot := item.get_media_by_id("screenshot")) and hasattr(screenshot, "urls"):
batch_if_valid('screenshot', "\n".join(screenshot.urls))