Panel: Find "unprocessed" not "processing" entries.
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Wed, 21 Mar 2012 11:08:53 +0000 (12:08 +0100)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Wed, 21 Mar 2012 11:17:57 +0000 (12:17 +0100)
Our entries in the queue are marked as "unprocessed" and
not as "processing" as the panel code wanted it to be. So
search for the correct string.

mediagoblin/user_pages/views.py

index 6eff684c170940c10ae639ee13300d766906699b..e69a6ffef147a7a43a6a6fbd1d360ed7df3ea40c 100644 (file)
@@ -305,7 +305,7 @@ def processing_panel(request):
     # Get media entries which are in-processing
     processing_entries = request.db.MediaEntry.find(
         {'uploader': user._id,
-         'state': 'processing'}).sort('created', DESCENDING)
+         'state': 'unprocessed'}).sort('created', DESCENDING)
 
     # Get media entries which have failed to process
     failed_entries = request.db.MediaEntry.find(