From 21ca165b2e48f209a2c1da4c5f434cf724767932 Mon Sep 17 00:00:00 2001 From: MiraGeowerkstatt Date: Wed, 14 Feb 2024 16:51:01 +0100 Subject: [PATCH] Undo some renaming in python api --- src/api-legacy/v1/borehole/editinglist.py | 4 ++-- src/api-legacy/v1/borehole/get.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api-legacy/v1/borehole/editinglist.py b/src/api-legacy/v1/borehole/editinglist.py index a7180feee..0600bc58a 100644 --- a/src/api-legacy/v1/borehole/editinglist.py +++ b/src/api-legacy/v1/borehole/editinglist.py @@ -83,7 +83,7 @@ async def execute( ) END AS lock, original_name_bho as original_name, - kind_id_cli as borehole_type, + kind_id_cli as kind, restriction_id_cli as restriction, to_char( restriction_until_bho, @@ -185,7 +185,7 @@ async def execute( array_agg( json_build_object( 'id', id, - 'borehole_type', borehole_type, + 'kind', kind, 'layers', layers, 'date', date ) diff --git a/src/api-legacy/v1/borehole/get.py b/src/api-legacy/v1/borehole/get.py index bbd0f1adb..549361e49 100644 --- a/src/api-legacy/v1/borehole/get.py +++ b/src/api-legacy/v1/borehole/get.py @@ -261,7 +261,7 @@ def get_sql(sql_lock='', file_permission=''): array_agg( json_build_object( 'id', id, - 'borehole_type', borehole_type, + 'kind', kind, 'name', "name", 'primary', "primary", 'layers', layers,