Skip to content

Commit

Permalink
fixup!: correctly report deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
rgraber committed Sep 5, 2024
1 parent e10ecba commit 925733f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kobo/apps/audit_log/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,5 @@ def spawn_access_log_cleaning_tasks():
@celery_app.task()
def batch_delete_audit_logs_by_id(ids):
logs = AuditLog.objects.filter(id__in=ids)
logs.delete()
logging.info(f'Deleted {len(logs)} audit logs from database')
count, _ = logs.delete()
logging.info(f'Deleted {count} audit logs from database')

0 comments on commit 925733f

Please sign in to comment.