From 7f0ceaa449db63de4759c0f7bd27be6a76b434e1 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 26 Dec 2021 13:21:50 +0000 Subject: [PATCH] Snake case --- utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils.py b/utils.py index 085ae8702..2018f118c 100644 --- a/utils.py +++ b/utils.py @@ -277,9 +277,10 @@ def is_dormant(base_dir: str, nickname: str, domain: str, actor: str, if days_since_epoch_str: days_since_epoch = int(days_since_epoch_str) curr_time = datetime.datetime.utcnow() - currDaysSinceEpoch = (curr_time - datetime.datetime(1970, 1, 1)).days + curr_days_since_epoch = \ + (curr_time - datetime.datetime(1970, 1, 1)).days timeDiffMonths = \ - int((currDaysSinceEpoch - days_since_epoch) / 30) + int((curr_days_since_epoch - days_since_epoch) / 30) if timeDiffMonths >= dormant_months: return True return False