removed querying of unused metrics in media panel
authorBoris Bobrov <breton@cynicmansion.ru>
Mon, 11 Aug 2014 09:51:07 +0000 (13:51 +0400)
committerBoris Bobrov <breton@cynicmansion.ru>
Thu, 28 Jan 2016 21:03:44 +0000 (22:03 +0100)
mediagoblin/user_pages/views.py

index 50e5c3a48e0f0f607b95f57dee296981ed0e5461..0de634400645e17a194e9c80b42bc4bbe548004a 100644 (file)
@@ -655,23 +655,6 @@ def processing_panel(request):
             user=user.username)
 
     # Get media entries which are in-processing
-    processing_entries = MediaEntry.query.\
-        filter_by(actor = user.id,
-                  state = u'processing').\
-        order_by(MediaEntry.created.desc())
-
-    # Get media entries which have failed to process
-    failed_entries = MediaEntry.query.\
-        filter_by(actor = user.id,
-                  state = u'failed').\
-        order_by(MediaEntry.created.desc())
-
-    processed_entries = MediaEntry.query.\
-        filter_by(actor = user.id,
-                  state = u'processed').\
-        order_by(MediaEntry.created.desc()).\
-        limit(10)
-    
     entries = (MediaEntry.query.filter_by(uploader=user.id)
             .order_by(MediaEntry.created.desc()))
 
@@ -680,9 +663,6 @@ def processing_panel(request):
         request,
         'mediagoblin/user_pages/processing_panel.html',
         {'user': user,
-         'processing_entries': processing_entries,
-         'failed_entries': failed_entries,
-         'processed_entries': processed_entries,
          'entries': entries})
 
 @allow_reporting