Skip to content

Commit

Permalink
Apply pre-commit fix
Browse files Browse the repository at this point in the history
From the artifact of the previous workflow run
  • Loading branch information
geo-ghci-int[bot] committed Dec 3, 2024
1 parent a560513 commit aa8e250
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,7 @@ def upgrade() -> None:
Column("readwrite", Boolean, default=False),
schema=schema,
)
op.execute(
f"SELECT AddGeometryColumn('{schema}', 'restrictionarea', "
f"'area', {srid}, 'POLYGON', 2)"
)
op.execute(f"SELECT AddGeometryColumn('{schema}', 'restrictionarea', " f"'area', {srid}, 'POLYGON', 2)")
op.create_table(
"shorturl",
Column("id", Integer, primary_key=True),
Expand All @@ -124,10 +121,7 @@ def upgrade() -> None:
Column("description", Unicode),
schema=schema,
)
op.execute(
f"SELECT AddGeometryColumn('{schema}', 'role', "
f"'extent', {srid}, 'POLYGON', 2)"
)
op.execute(f"SELECT AddGeometryColumn('{schema}', 'role', " f"'extent', {srid}, 'POLYGON', 2)")
role = Table("role", MetaData(), Column("name", Unicode, unique=True, nullable=False), schema=schema)
op.bulk_insert(role, [{"name": "role_admin"}])

Expand Down Expand Up @@ -180,10 +174,7 @@ def upgrade() -> None:
Column("params", Unicode, nullable=True),
schema=schema,
)
op.execute(
f"SELECT AddGeometryColumn('{schema}', 'tsearch', 'the_geom', "
f"{srid}, 'GEOMETRY', 2)"
)
op.execute(f"SELECT AddGeometryColumn('{schema}', 'tsearch', 'the_geom', " f"{srid}, 'GEOMETRY', 2)")
op.create_index("tsearch_ts_idx", "tsearch", ["ts"], schema=schema, postgresql_using="gin")
op.create_table(
"treegroup",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,9 @@ def upgrade() -> None:
schema = config["schema"]

op.execute(

f"DELETE from {schema}.layer_restrictionarea WHERE layer_id IN ("
f"SELECT id from {schema}.treeitem WHERE type = 'layerv1'"
");"

f"DELETE from {schema}.layer_restrictionarea WHERE layer_id IN ("
f"SELECT id from {schema}.treeitem WHERE type = 'layerv1'"
");"
)
op.execute(f"DELETE from {schema}.treeitem WHERE type = 'layerv1';")

Expand Down
1 change: 0 additions & 1 deletion geoportal/c2cgeoportal_geoportal/lib/lingva_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,6 @@ def _collect_app_config(self, filename: str) -> list[Message]:
interface_config.get("constants", {})
.get("gmfDisplayQueryGridOptions", {})
.get("mergeTabs", {})

):
location = (
f"interfaces_config/{interface}/constants/gmfDisplayQueryGridOptions/"
Expand Down
2 changes: 1 addition & 1 deletion geoportal/c2cgeoportal_geoportal/scripts/theme2fts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2014-2023, Camptocamp SA
# Copyright (c) 2014-2024, Camptocamp SA
# All rights reserved.

# Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion geoportal/c2cgeoportal_geoportal/views/dev.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2011-2021, Camptocamp SA
# Copyright (c) 2011-2024, Camptocamp SA
# All rights reserved.

# Redistribution and use in source and binary forms, with or without
Expand Down

0 comments on commit aa8e250

Please sign in to comment.