Skip to content

Commit

Permalink
connexion was the one introducing werkasdlkfjadsh
Browse files Browse the repository at this point in the history
  • Loading branch information
vggonzal committed Nov 7, 2023
1 parent f52372b commit 407c2e0
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions hydrocron/api/hydrocron.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from typing import Callable

import boto3
import connexion

from hydrocron.api.data_access.db import DynamoDataRepository

Expand Down Expand Up @@ -55,23 +54,6 @@ def get_param(self, name):

return os.getenv(f'{self.APP_NAME.upper()}_{name}')

@property
def flask_app(self) -> connexion.App:
"""
@return:
"""
if not self._app:
app = connexion.App(
'hydrocron',
specification_dir=os.path.join(os.path.dirname(os.path.realpath(__file__)), 'swagger')
)
app.add_api('swagger.yaml',
arguments={'title': 'Get time series data from SWOT observations for reaches, nodes, and/or lakes'},
pythonic_params=True)
self._app = app.app
return self._app

@property
def data_repository(self) -> DynamoDataRepository:
"""
Expand Down Expand Up @@ -100,7 +82,6 @@ def construct_repository(self):

# Silence the linters
get_param: Callable[[str], str]
flask_app: connexion.App
data_repository: DynamoDataRepository

sys.modules[__name__] = Context(__name__)

0 comments on commit 407c2e0

Please sign in to comment.