Browse files

Do not reinitialize document queue and/or queued document on reentry

  • Loading branch information...
1 parent 9bcd2d3 commit 9bd22f65d195ada6c14020884e5b540c525ca3fb @rosarior rosarior committed Mar 9, 2011
Showing with 0 additions and 7 deletions.
  1. +0 −7 apps/ocr/__init__.py
View
7 apps/ocr/__init__.py
@@ -49,13 +49,6 @@
if created:
default_queue.label = ugettext(u'Default')
default_queue.save()
-
- for queue in DocumentQueue.objects.all():
- queue.state = DOCUMENTQUEUE_STATE_ACTIVE
- queue.save()
- for document in queue.queuedocument_set.filter(state=QUEUEDOCUMENT_STATE_PROCESSING):
- document.state = QUEUEDOCUMENT_STATE_PENDING
- document.save()
except DatabaseError:
#syncdb
pass

0 comments on commit 9bd22f6

Please sign in to comment.