Fixing ./bin/gmg reprocess available, which I broke :)
authorChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 12 Aug 2013 16:27:43 +0000 (11:27 -0500)
committerRodney Ewing <ewing.rj@gmail.com>
Fri, 16 Aug 2013 22:30:17 +0000 (15:30 -0700)
mediagoblin/gmg_commands/reprocess.py

index 4678ca6f77dfcf8d20873189df62f57d86020a8d..bd8039b58ff1ebd9ace36b224e414c9eea37e109 100644 (file)
@@ -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