forked from Support/sp-hydra-veil-gui
9 lines
387 B
Python
Executable file
9 lines
387 B
Python
Executable file
from datetime import datetime, timezone, timedelta
|
|
|
|
from core.controllers.ConfigurationController import ConfigurationController
|
|
|
|
|
|
def should_be_synchronized():
|
|
current_datetime = datetime.today().astimezone(timezone.utc)
|
|
last_synced_at = ConfigurationController.get_last_synced_at()
|
|
return last_synced_at is None or (current_datetime - last_synced_at) >= timedelta(days=30)
|