mirror of https://gitlab.com/bashrc2/epicyon
Snake case
parent
7f0ceaa449
commit
19e1bd2542
4
utils.py
4
utils.py
|
@ -279,9 +279,9 @@ def is_dormant(base_dir: str, nickname: str, domain: str, actor: str,
|
||||||
curr_time = datetime.datetime.utcnow()
|
curr_time = datetime.datetime.utcnow()
|
||||||
curr_days_since_epoch = \
|
curr_days_since_epoch = \
|
||||||
(curr_time - datetime.datetime(1970, 1, 1)).days
|
(curr_time - datetime.datetime(1970, 1, 1)).days
|
||||||
timeDiffMonths = \
|
time_diff_months = \
|
||||||
int((curr_days_since_epoch - days_since_epoch) / 30)
|
int((curr_days_since_epoch - days_since_epoch) / 30)
|
||||||
if timeDiffMonths >= dormant_months:
|
if time_diff_months >= dormant_months:
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue