From ffc85f5850b54d530789f28ad10b8441b8dcd5c4 Mon Sep 17 00:00:00 2001 From: Monique Rio Date: Mon, 11 Nov 2024 21:33:12 +0000 Subject: [PATCH] added comment about zephir check not setting timezone --- aim/digifeeds/item.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/aim/digifeeds/item.py b/aim/digifeeds/item.py index 4ded915..665d090 100644 --- a/aim/digifeeds/item.py +++ b/aim/digifeeds/item.py @@ -40,6 +40,15 @@ def barcode(self) -> str: @property def in_zephir_for_long_enough(self) -> bool: + """ + Returns whether or not the item has had metadata in zephir for more than + 14 days. The production database saves timestamps in Eastern Time. K8s + runs in UTC. Because this is checking days, this function doesn't set the + timezone because it's not close enough to matter. + + Returns: + bool: whether or not the item's metadata has been in zephir for more than 14 days. + """ waiting_period = 14 # days in_zephir_status = next( (