dont create missing tasks

This commit is contained in:
j 2016-09-20 01:16:58 +02:00
parent 58c8def046
commit 55f9d9f58b

View file

@ -25,11 +25,13 @@ def get_tasks(username):
Task.objects.filter(status__in=Task.DONE, ended__lt=yesterday).delete() Task.objects.filter(status__in=Task.DONE, ended__lt=yesterday).delete()
# add task for that might be missing # add task for that might be missing
'''
for i in Item.objects.filter(rendered=False).exclude(files__id=None): for i in Item.objects.filter(rendered=False).exclude(files__id=None):
task, created = Task.objects.get_or_create(item=i) task, created = Task.objects.get_or_create(item=i)
if created: if created:
task.started = i.modified task.started = i.modified
task.update() task.update()
'''
qs = Task.objects.all() qs = Task.objects.all()
if username: if username: