]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/cli.py
fix off-by-one error in replication download
[nominatim.git] / nominatim / cli.py
index e28ff29563f8edf9df2adef1a786f612520922a7..37bcaffbbb41e8bc96a99a7adccb8425ba8b2976 100644 (file)
@@ -336,7 +336,8 @@ class UpdateReplication:
             conn = connect(args.config.get_libpq_dsn())
             start = dt.datetime.now(dt.timezone.utc)
             state = replication.update(conn, params)
             conn = connect(args.config.get_libpq_dsn())
             start = dt.datetime.now(dt.timezone.utc)
             state = replication.update(conn, params)
-            status.log_status(conn, start, 'import')
+            if state is not replication.UpdateState.NO_CHANGES:
+                status.log_status(conn, start, 'import')
             batchdate, _, _ = status.get_status(conn)
             conn.close()
 
             batchdate, _, _ = status.get_status(conn)
             conn.close()