fixed regression of the save pruning due to introduction of uuid as primary key.

This commit is contained in:
Ilan Steemers
2015-07-10 12:07:27 +02:00
parent fd168b3202
commit 90d30e14e8
+1 -1
View File
@@ -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'],