From c100b8b284456e5102de4b05d77a66f829a34939 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Mon, 12 Aug 2013 11:27:43 -0500 Subject: [PATCH] Fixing ./bin/gmg reprocess available, which I broke :) --- mediagoblin/gmg_commands/reprocess.py | 5 +++-- 1 file 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 -- 2.25.1