From 7feafff8fb2d190c51fb37b989d7661a2d3df3e0 Mon Sep 17 00:00:00 2001 From: kshitijrajsharma Date: Tue, 6 Aug 2024 11:22:21 +0545 Subject: [PATCH] refactor(init-default-values): reinitialize the default value as other endpoints don't require parameters --- src/app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app.py b/src/app.py index 23c1f61e..0a8b0210 100644 --- a/src/app.py +++ b/src/app.py @@ -449,9 +449,9 @@ class RawData: -Osm element type (Optional) """ - def __init__(self, parameters, request_uid="raw-data-api", dbdict=None): - - self.params = parameters + def __init__(self, parameters=None, request_uid="raw-data-api", dbdict=None): + if parameters: + self.params = parameters # only use connection pooling if it is configured in config file if use_connection_pooling: # if database credentials directly from class is not passed grab from pool