From: Christopher Allan Webber Date: Mon, 12 Aug 2013 16:27:43 +0000 (-0500) Subject: Fixing ./bin/gmg reprocess available, which I broke :) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c100b8b284456e5102de4b05d77a66f829a34939;p=mediagoblin.git Fixing ./bin/gmg reprocess available, which I broke :) --- 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