aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands/reprocess.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2013-08-12 11:27:43 -0500
committerRodney Ewing <ewing.rj@gmail.com>2013-08-16 15:30:17 -0700
commitc100b8b284456e5102de4b05d77a66f829a34939 (patch)
tree320c57fa1ec207c2d54c2abda9f68be95fc1e706 /mediagoblin/gmg_commands/reprocess.py
parentde332ab9f5c56589349494d1ccbbf2cfc65424ca (diff)
downloadmediagoblin-c100b8b284456e5102de4b05d77a66f829a34939.tar.lz
mediagoblin-c100b8b284456e5102de4b05d77a66f829a34939.tar.xz
mediagoblin-c100b8b284456e5102de4b05d77a66f829a34939.zip
Fixing ./bin/gmg reprocess available, which I broke :)
Diffstat (limited to 'mediagoblin/gmg_commands/reprocess.py')
-rw-r--r--mediagoblin/gmg_commands/reprocess.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mediagoblin/gmg_commands/reprocess.py b/mediagoblin/gmg_commands/reprocess.py
index 4678ca6f..bd8039b5 100644
--- a/mediagoblin/gmg_commands/reprocess.py
+++ b/mediagoblin/gmg_commands/reprocess.py
@@ -212,8 +212,9 @@ def _set_media_state(args):
def available(args):
# Get the media type, either by looking up media id, or by specific type
try:
- media_entry, manager = get_entry_and_processing_manager(args.id_or_type)
- media_type = media_entry.type
+ media_id = int(args.id_or_type)
+ media_entry, manager = get_entry_and_processing_manager(media_id)
+ media_type = media_entry.media_type
except ValueError:
media_type = args.id_or_type
media_entry = None