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
Next Next commit
refactor: change import json to global
  • Loading branch information
Jobzi authored Nov 10, 2021
commit abe096ee7d6d0dcf2846734d141a39827ca0aa7a
3 changes: 1 addition & 2 deletions time_tracker_api/activities/activities_model.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
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 +124,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 Down