Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 9bd22f65d195ada6c14020884e5b540c525ca3fb 1 parent 9bcd2d3
@rosarior rosarior authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.