Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
refactor: TT-384 change import to global and name method
  • Loading branch information
Jobzi authored Nov 10, 2021
commit e3480cc5479870218ffdc168d7ed3c231f1ad7b5
4 changes: 2 additions & 2 deletions time_tracker_api/activities/activities_model.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from dataclasses import dataclass

import json
from azure.cosmos import PartitionKey

from commons.data_access_layer.cosmos_db import (
Expand Down Expand Up @@ -124,7 +125,6 @@ def find_all_from_blob_storage(
if tenant_id_value is None:
return []

import json
fs = FileStream("storageaccounteystr82c5","tt-common-files")
result = fs.get_file_stream(file_name)
return list(map(function_mapper, json.load(result))) if result is not None else []
Expand All @@ -143,7 +143,7 @@ def get_all_with_id_in_list(
activity_ids,
)

def get_all_old(
def get_all_v1(
self,
conditions: dict = None,
activities_id: List = None,
Expand Down