Skip to content

Commit e3480cc

Browse files
authored
refactor: TT-384 change import to global and name method
1 parent f9532ea commit e3480cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

time_tracker_api/activities/activities_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from dataclasses import dataclass
22

3+
import json
34
from azure.cosmos import PartitionKey
45

56
from commons.data_access_layer.cosmos_db import (
@@ -124,7 +125,6 @@ def find_all_from_blob_storage(
124125
if tenant_id_value is None:
125126
return []
126127

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

146-
def get_all_old(
146+
def get_all_v1(
147147
self,
148148
conditions: dict = None,
149149
activities_id: List = None,

0 commit comments

Comments
 (0)