map: add int conversion before comparing zoom levels (#86631) #230
Loading…
Reference in New Issue
No description provided.
Delete Branch "wip/86631-bugfix-map-zoom-comparison"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
WIP: map: add int conversion before comparing zoom levels (#86631)to map: add int conversion before comparing zoom levels (#86631)@ -135,3 +135,1 @@
initial_zoom = cleaned_data.get('initial_zoom')
max_zoom = cleaned_data.get('max_zoom')
min_zoom = cleaned_data.get('min_zoom')
initial_zoom = int(cleaned_data.get('initial_zoom'))
Ici on pourrait en profiter pour réécrire en
cleaned_data['initial_zoom']
, ça fait un peu tiquer d'appelerint()
sur un truc qui peut valoir None (ce n'est jamais le cas donc autant ne pas le laisser croire)65eb70ce26
toec57e7c060