Skip to content

Commit

Permalink
removing references to terria
Browse files Browse the repository at this point in the history
  • Loading branch information
PhillipsOwen committed Oct 23, 2024
1 parent 58dc37b commit 2fb8849
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/common/pg_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __del__(self):
# clean up connections and cursors
PGUtilsMultiConnect.__del__(self)

def get_terria_map_workbench_data(self, **kwargs):
def get_map_workbench_data(self, **kwargs):
"""
Gets the catalog workbench data
Expand All @@ -77,8 +77,8 @@ def get_terria_map_workbench_data(self, **kwargs):

# create the sql to get the latest runs for the workbench lookup
sql: str = f"SELECT public.get_latest_runs(_insertion_date:={kwargs['insertion_date']}, _met_class:={kwargs['met_class']}, " \
f"_physical_location:={kwargs['physical_location']}, _ensemble_name:={kwargs['ensemble_name']}, _project_code:=" \
f"{kwargs['project_code']})"
f"_physical_location:={kwargs['physical_location']}, _ensemble_name:={kwargs['ensemble_name']}, " \
f"_instance_name:={kwargs['instance_name']}, _project_code:={kwargs['project_code']})"

# get the max age
max_age: int = int(kwargs['max_age'])
Expand Down Expand Up @@ -128,9 +128,9 @@ def get_terria_map_workbench_data(self, **kwargs):
# return the data
return ret_val

def get_terria_map_catalog_data(self, **kwargs):
def get_map_catalog_data(self, **kwargs):
"""
gets the catalog data for the terria map UI
gets the catalog data for the map UI
:param **kwargs
:return:
Expand Down Expand Up @@ -209,7 +209,7 @@ def get_workbench_data(self, **kwargs):
# are we using the new catalog workbench retrieval?
if kwargs['use_new_wb']:
# create the param list
params: list = ['insertion_date', 'met_class', 'physical_location', 'ensemble_name', 'project_code']
params: list = ['insertion_date', 'met_class', 'physical_location', 'instance_name', 'ensemble_name', 'project_code']

# loop through the params for the SP
for param in params:
Expand All @@ -222,7 +222,7 @@ def get_workbench_data(self, **kwargs):
kwargs.update({'max_age': 1})

# try to make the call for records
ret_val = self.get_terria_map_workbench_data(**kwargs)
ret_val = self.get_map_workbench_data(**kwargs)

# check the return
if ret_val == -1:
Expand Down

0 comments on commit 2fb8849

Please sign in to comment.