Pause before next report to avoid hitting sending quota

This commit is contained in:
Pēteris Caune 2017-04-24 22:35:16 +03:00
parent 9dcb1678f3
commit d7d21b0959

View File

@ -56,6 +56,8 @@ class Command(BaseCommand):
self.stdout.write(self.tmpl % profile.user.email)
profile.send_report()
# Pause before next report to avoid hitting sending quota
time.sleep(1)
sent += 1
return sent