dont create missing tasks
This commit is contained in:
parent
58c8def046
commit
55f9d9f58b
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue