From d59c2298e418a885ad09e6a6a8ae76cdb5c7856e Mon Sep 17 00:00:00 2001 From: Boris Bobrov Date: Mon, 11 Aug 2014 13:51:07 +0400 Subject: [PATCH] removed querying of unused metrics in media panel --- mediagoblin/user_pages/views.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/mediagoblin/user_pages/views.py b/mediagoblin/user_pages/views.py index 50e5c3a4..0de63440 100644 --- a/mediagoblin/user_pages/views.py +++ b/mediagoblin/user_pages/views.py @@ -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 -- 2.25.1