mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-23 07:28:11 +08:00
fixed regression of the save pruning due to introduction of uuid as primary key.
This commit is contained in:
+1
-1
@@ -389,7 +389,7 @@ def save_task(task):
|
||||
return
|
||||
# SAVE LIMIT > 0: Prune database, SAVE_LIMIT 0: No pruning
|
||||
if task['success'] and 0 < Conf.SAVE_LIMIT < Success.objects.count():
|
||||
Success.objects.first().delete()
|
||||
Success.objects.last().delete()
|
||||
|
||||
try:
|
||||
Task.objects.create(id=task['id'],
|
||||
|
||||
Reference in New Issue
Block a user