aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands/reprocess.py
diff options
context:
space:
mode:
authorRodney Ewing <ewing.rj@gmail.com>2013-08-01 13:53:20 -0700
committerRodney Ewing <ewing.rj@gmail.com>2013-08-16 15:30:13 -0700
commit4a36407d39a18f295e5fc09125fac8e2a7252f55 (patch)
tree8a48ec776c6434bb112d5f2e26ecd231bf6c0fab /mediagoblin/gmg_commands/reprocess.py
parent81d880b16adb2d6c872e0ad37ffe34bf7bfaba6c (diff)
downloadmediagoblin-4a36407d39a18f295e5fc09125fac8e2a7252f55.tar.lz
mediagoblin-4a36407d39a18f295e5fc09125fac8e2a7252f55.tar.xz
mediagoblin-4a36407d39a18f295e5fc09125fac8e2a7252f55.zip
Pep 8
Diffstat (limited to 'mediagoblin/gmg_commands/reprocess.py')
-rw-r--r--mediagoblin/gmg_commands/reprocess.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/mediagoblin/gmg_commands/reprocess.py b/mediagoblin/gmg_commands/reprocess.py
index 2158d36e..9390861f 100644
--- a/mediagoblin/gmg_commands/reprocess.py
+++ b/mediagoblin/gmg_commands/reprocess.py
@@ -44,7 +44,7 @@ def reprocess_parser_setup(subparser):
def _set_media_type(args):
if len(args[0].media_id) == 1:
media_type = MediaEntry.query.filter_by(id=args[0].media_id[0])\
- .first().media_type.split('.')[-1]
+ .first().media_type.split('.')[-1]
if not args[0].type:
args[0].type = media_type
@@ -55,7 +55,7 @@ def _set_media_type(args):
media_types = []
for id in args[0].media_id:
- media_types.append(MediaEntry.query.filter_by(id=id).first()\
+ media_types.append(MediaEntry.query.filter_by(id=id).first()
.media_type.split('.')[-1])
for type in media_types:
if media_types[0] != type:
@@ -77,8 +77,8 @@ def _reprocess_all(args):
if not args[0].type:
if args[0].state == 'failed':
if args[0].available:
- print _('\n Available reprocess actions for all failed' \
- ' media_entries: \n \t --initial_processing')
+ print _('\n Available reprocess actions for all failed'
+ ' media_entries: \n \t --initial_processing')
return
else:
#TODO reprocess all failed entries