]> git.openstreetmap.org Git - nominatim.git/blobdiff - src/nominatim_api/v1/classtypes.py
Simplify int/float manipulation
[nominatim.git] / src / nominatim_api / v1 / classtypes.py
index 7198b412e2cb9badf31a3910c73b74d90bf48c20..c2fe14539349a82c8b2d607a4ecb0127ed44305d 100644 (file)
@@ -25,8 +25,8 @@ def get_label_tag(category: Tuple[str, str], extratags: Optional[Mapping[str, st
     elif rank < 26 and extratags and 'linked_place' in extratags:
         label = extratags['linked_place']
     elif category == ('boundary', 'administrative'):
-        label = ADMIN_LABELS.get((country or '', int(rank/2)))\
-                or ADMIN_LABELS.get(('', int(rank/2)))\
+        label = ADMIN_LABELS.get((country or '', rank // 2))\
+                or ADMIN_LABELS.get(('', rank // 2))\
                 or 'Administrative'
     elif category[1] == 'postal_code':
         label = 'postcode'