mirror of
https://github.com/eduardogsilva/routerfleet.git
synced 2025-08-30 23:00:21 +02:00
Timezone configuration, cron monitoring and backup debug information
This commit is contained in:
parent
c5307ee1ee
commit
0714eff28a
9 changed files with 97 additions and 8 deletions
|
@ -8,6 +8,8 @@ import requests
|
|||
|
||||
def cron_check_updates(request):
|
||||
webadmin_settings, webadmin_settings_created = WebadminSettings.objects.get_or_create(name='webadmin_settings')
|
||||
webadmin_settings.cron_last_run = timezone.now()
|
||||
webadmin_settings.save()
|
||||
|
||||
if webadmin_settings.last_checked is None or timezone.now() - webadmin_settings.last_checked > timezone.timedelta(
|
||||
hours=1):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue