This commit is contained in:
caoqianming 2026-03-19 21:05:17 +08:00
commit 25955fb674
2 changed files with 8 additions and 8 deletions

View File

@ -70,7 +70,7 @@ def clear_drf_log(days: int = 7):
""" """
now = timezone.now() now = timezone.now()
days7_ago = now - timedelta(days=days) days7_ago = now - timedelta(days=days)
DrfRequestLog.objects.filter(create_time__lte=days7_ago).delete() DrfRequestLog.objects.filter(requested_at__lte=days7_ago).delete()
@shared_task(base=CustomTask) @shared_task(base=CustomTask)

View File

@ -6,16 +6,16 @@ django-cors-headers==4.9.0
django-filter==23.5 django-filter==23.5
djangorestframework==3.16.1 djangorestframework==3.16.1
djangorestframework-simplejwt==5.5.1 djangorestframework-simplejwt==5.5.1
drf-yasg==1.21.7 drf-yasg==1.21.8
psutil==5.9.0 psutil==7.0.0
redis==7.1.0 redis==7.1.0
django-redis==6.0.0 django-redis==6.0.0
user-agents==2.2.0 user-agents==2.2.0
daphne==4.0.0 daphne==4.1.2
channels-redis==4.3.0 channels-redis==4.3.0
django-restql==0.15.2 django-restql==0.16.2
requests==2.28.1 requests==2.32.3
xlwt==1.3.0 xlwt==1.3.0
openpyxl==3.1.5 openpyxl==3.1.5
cron-descriptor==1.2.35 cron-descriptor==1.4.5
docxtpl==0.16.7 docxtpl==0.19.1