Skip to content

Commit abe096e

Browse files
authored
refactor: change import json to global
1 parent f9532ea commit abe096e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

time_tracker_api/activities/activities_model.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from dataclasses import dataclass
2-
2+
import json
33
from azure.cosmos import PartitionKey
44

55
from commons.data_access_layer.cosmos_db import (
@@ -124,7 +124,6 @@ def find_all_from_blob_storage(
124124
if tenant_id_value is None:
125125
return []
126126

127-
import json
128127
fs = FileStream("storageaccounteystr82c5","tt-common-files")
129128
result = fs.get_file_stream(file_name)
130129
return list(map(function_mapper, json.load(result))) if result is not None else []

0 commit comments

Comments
 (0)