Skip to content

Commit

Permalink
refactor(init-default-values): reinitialize the default value as othe…
Browse files Browse the repository at this point in the history
…r endpoints don't require parameters
  • Loading branch information
kshitijrajsharma committed Aug 6, 2024
1 parent ee94f26 commit 7feafff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7feafff

Please sign in to comment.