Skip to content

Commit

Permalink
[FIX] base_geongine,geongine_swisstopo: remove f-strings
Browse files Browse the repository at this point in the history
Partial revert of changes from
3f3f687
and
5ae427e

to ensure compatibility with python 3.5
  • Loading branch information
aleuffre committed Mar 13, 2024
1 parent 36f05b6 commit 0a51c41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base_geoengine/geo_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion geoengine_swisstopo/geo_view/geo_raster_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check warning on line 44 in geoengine_swisstopo/geo_view/geo_raster_layer.py

View check run for this annotation

Codecov / codecov/patch

geoengine_swisstopo/geo_view/geo_raster_layer.py#L44

Added line #L44 was not covered by tests
else:
record.projection = False

Expand Down

0 comments on commit 0a51c41

Please sign in to comment.