Skip to content

Commit 622d5ad

Browse files
authored
Merge pull request #130 from ioet/feature/computed-worked-time#108
Feature/computed worked time#108
2 parents 515d6fa + cce03ce commit 622d5ad

File tree

5 files changed

+642
-300
lines changed

5 files changed

+642
-300
lines changed

commons/data_access_layer/cosmos_db.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,11 @@ def __init__(self, status_code: int, description: str = None):
379379
self.description = description
380380

381381

382+
def init_app(app: Flask) -> None:
383+
global cosmos_helper
384+
cosmos_helper = CosmosDBFacade.from_flask_config(app)
385+
386+
382387
def current_datetime() -> datetime:
383388
return datetime.utcnow()
384389

@@ -398,11 +403,6 @@ def generate_uuid4() -> str:
398403
return str(uuid.uuid4())
399404

400405

401-
def init_app(app: Flask) -> None:
402-
global cosmos_helper
403-
cosmos_helper = CosmosDBFacade.from_flask_config(app)
404-
405-
406406
def get_last_day_of_month(year: int, month: int) -> int:
407407
from calendar import monthrange
408408
return monthrange(year=year, month=month)[1]

0 commit comments

Comments
 (0)