Skip to content

Commit

Permalink
update changelog + default value of height and width
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesfize committed Dec 20, 2024
1 parent 91f9c87 commit 937a41f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apptax/taxonomie/routestmedias.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def getThumbnail_tmedias(id_media):

size = DEFAULT_THUMBNAIL_SIZE

height_params: str = params.get("h", "-1")
width_params: str = params.get("w", "-1")
height_params: str = params.get("h", None)
width_params: str = params.get("w", None)

if width_params and width_params.isdigit():
size = (int(width_params), size[1])
Expand Down
1 change: 1 addition & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
**🚀 Nouveautés**

- La limite du nombre de caractères dans la colonne `source` des médias est levée (#595 par @jacquesfize,@amandine-sahl)
- Ajout de la possibilité sur la route `/thumbnail/<int:id_media>` d'indiquer seulement la hauteur ou la largeur de la minitiature souhaitée (#594 par @jacquesfize)


2.1.0 (2024-12-06)
Expand Down

0 comments on commit 937a41f

Please sign in to comment.