]> git.openstreetmap.org Git - nominatim.git/blobdiff - src/nominatim_db/version.py
fix postcode lookup with legacy tokenizer
[nominatim.git] / src / nominatim_db / version.py
index 70e1ac14ac9a6bc13969ea0e0f059ceb0b078f6c..fceee5d04f6d961daa07ada58629cc928c643679 100644 (file)
@@ -31,7 +31,7 @@ class NominatimVersion(NamedTuple):
     major: int
     minor: int
     patch_level: int
-    db_patch_level: Optional[int]
+    db_patch_level: int
 
     def __str__(self) -> str:
         if self.db_patch_level is None:
@@ -47,6 +47,7 @@ class NominatimVersion(NamedTuple):
         return f"{self.major}.{self.minor}.{self.patch_level}"
 
 
+
 def parse_version(version: str) -> NominatimVersion:
     """ Parse a version string into a version consisting of a tuple of
         four ints: major, minor, patch level, database patch level