From: David Thompson Date: Tue, 31 Mar 2015 18:36:30 +0000 (-0400) Subject: Fix media tag filter. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e3e1899c61de7f6b347642428a7ccdfb3ee050e6;p=mediagoblin-libreplanet.git Fix media tag filter. --- diff --git a/mediagoblin_libreplanet/__init__.py b/mediagoblin_libreplanet/__init__.py index e27ba7e..6ae6c4a 100644 --- a/mediagoblin_libreplanet/__init__.py +++ b/mediagoblin_libreplanet/__init__.py @@ -27,7 +27,7 @@ from mediagoblin.decorators import uses_pagination, user_not_banned PLUGIN_DIR = os.path.dirname(__file__) MAX_HOME_ITEMS = 20 -LP_TAG = 'libreplanet2014' +LP_TAG = 'libreplanet2015' _log = logging.getLogger(__name__) @@ -40,7 +40,7 @@ def setup_plugin(): register_template_path(os.path.join(PLUGIN_DIR, 'templates')) def lp_media_for_type(db, type): - return media_entries_for_tag_slug(db, 'libreplanet2015').\ + return media_entries_for_tag_slug(db, LP_TAG).\ filter(MediaEntry.media_type == type).\ order_by(MediaEntry.created.desc()).\ limit(MAX_HOME_ITEMS)