diff --git a/apptax/taxonomie/routestmedias.py b/apptax/taxonomie/routestmedias.py index 5492b80e..c682dcd9 100644 --- a/apptax/taxonomie/routestmedias.py +++ b/apptax/taxonomie/routestmedias.py @@ -56,7 +56,7 @@ def getThumbnail_tmedias(id_media): Image générée """ - media = TMedias.query.get(id) + media = TMedias.query.get(id_media) if media is None: return ( json.dumps(