From 0a51c41b9b9f3365fbfcbff634f8e45132bb8b18 Mon Sep 17 00:00:00 2001 From: Alessandro Uffreduzzi Date: Wed, 13 Mar 2024 16:01:18 +0100 Subject: [PATCH] [FIX] base_geongine,geongine_swisstopo: remove f-strings Partial revert of changes from 3f3f6872336b0e2c3a937d1fce24e68d86010f18 and 5ae427e8b3a02286c179c0c38bb10822b9d7f8a2 to ensure compatibility with python 3.5 --- base_geoengine/geo_model.py | 2 +- geoengine_swisstopo/geo_view/geo_raster_layer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/base_geoengine/geo_model.py b/base_geoengine/geo_model.py index 5590ba50c5..10cf7e73af 100644 --- a/base_geoengine/geo_model.py +++ b/base_geoengine/geo_model.py @@ -131,7 +131,7 @@ def get_edit_info_for_geo_column(self, column): 'default_extent': view.default_extent or DEFAULT_EXTENT, 'default_zoom': view.default_zoom, } - logger.debug(f"Parameters for geo field {column}:\n{res}") + logger.debug("Parameters for geo field {}:\n{}".format(column, res)) return res @api.model diff --git a/geoengine_swisstopo/geo_view/geo_raster_layer.py b/geoengine_swisstopo/geo_view/geo_raster_layer.py index 6f44e184a9..185e2c0fbb 100644 --- a/geoengine_swisstopo/geo_view/geo_raster_layer.py +++ b/geoengine_swisstopo/geo_view/geo_raster_layer.py @@ -41,7 +41,7 @@ class GeoRasterLayer(models.Model): def _get_projection(self): for record in self: if record.raster_type == "swisstopo": - record.projection = f"EPSG:{record.matrix_set}" + record.projection = "EPSG:{}".format(record.matrix_set) else: record.projection = False