]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/db/status.py
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / nominatim / db / status.py
index 12b24a837d965e07006256cf655248567541cdde..d31196b3f9cdd14c9da1277565525e10f3688430 100644 (file)
@@ -34,7 +34,7 @@ def compute_database_date(conn):
 
     LOG.info("Using node id %d for timestamp lookup", osmid)
     # Get the node from the API to find the timestamp when it was created.
-    node_url = 'https://www.openstreetmap.org/api/0.6/node/{}/1'.format(osmid)
+    node_url = f'https://www.openstreetmap.org/api/0.6/node/{osmid}/1'
     data = get_url(node_url)
 
     match = re.search(r'timestamp="((\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}))Z"', data)