Skip to content
Snippets Groups Projects

Improve automatic emails with temporary urls

Merged Flavio TARSETTI requested to merge 542_temporary_urls into master
All threads resolved!
Files
9
@@ -59,7 +59,7 @@ class Command(BaseCommand):
temporary_urls_count = TemporaryUrl.objects.all().count()
now = datetime.datetime.now()
count = TemporaryUrl.objects.filter(expires__lt=now).delete()[0]
count, _ = TemporaryUrl.objects.filter(expires__lt=now).delete()
self.stdout.write('{} Expired temporary url(s) successfully cleaned/'.format(count) + '{} Total temporary url(s) checked'.format(temporary_urls_count))
Loading