core(major): add integrated database backup

This commit is contained in:
Langhammer, Jens
2019-10-15 13:52:33 +02:00
parent 8bdf12cff1
commit 4086252979
5 changed files with 112 additions and 43 deletions

View File

@ -11,4 +11,4 @@ LOGGER = get_logger()
def clean_nonces():
"""Remove expired nonces"""
amount, _ = Nonce.objects.filter(expires__lt=now(), expiring=True).delete()
LOGGER.debug("Deleted expired nonces", amount=amount)
LOGGER.debug('Deleted expired nonces', amount=amount)