projects
/
mediagoblin-libreplanet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
724f873
)
Fix media tag filter.
author
David Thompson
<davet@gnu.org>
Tue, 31 Mar 2015 18:36:30 +0000
(14:36 -0400)
committer
David Thompson
<davet@gnu.org>
Tue, 31 Mar 2015 18:36:30 +0000
(14:36 -0400)
mediagoblin_libreplanet/__init__.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin_libreplanet/__init__.py
b/mediagoblin_libreplanet/__init__.py
index e27ba7e6394bf5211e5eb02359cf521c77faea3c..6ae6c4a68dd30f4ea67f9543f5698839a6d25fa3 100644
(file)
--- 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 = 'libreplanet201
4
'
+LP_TAG = 'libreplanet201
5
'
_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)