master #14

Merged
emmatveev merged 2 commits from master into prod 2024-12-08 15:17:36 +03:00
Showing only changes of commit b9a2ab5509 - Show all commits

View File

@ -24,6 +24,8 @@ class Command(BaseCommand):
if response.status_code != 200:
continue
Snapshot.objects.create(project=project, data=response.json())
if not project.stats_cron:
continue
cron = croniter.croniter(project.stats_cron, timezone.now())
next_date = cron.get_next(datetime.datetime)
project.next_stats_fetch_time = next_date