mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2026-01-01 20:27:02 -05:00
feat: Implement initial schema and add various API, service, and management command enhancements across the application.
This commit is contained in:
@@ -99,8 +99,6 @@ class LoginHistory(models.Model):
|
||||
|
||||
# Default cleanup for entries older than the specified days
|
||||
cutoff = timezone.now() - timedelta(days=days)
|
||||
deleted_count, _ = cls.objects.filter(
|
||||
login_timestamp__lt=cutoff
|
||||
).delete()
|
||||
deleted_count, _ = cls.objects.filter(login_timestamp__lt=cutoff).delete()
|
||||
|
||||
return deleted_count
|
||||
|
||||
Reference in New Issue
Block a user