File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 1010import json
1111import traceback
1212from datetime import datetime
13-
1413from config import cosmos_global_actions_container
1514
1615def get_global_actions ():
@@ -25,7 +24,7 @@ def get_global_actions():
2524 query = "SELECT * FROM c" ,
2625 enable_cross_partition_query = True
2726 ))
28-
27+
2928 return actions
3029
3130 except Exception as e :
@@ -45,8 +44,6 @@ def get_global_action(action_id):
4544 dict: Action data or None if not found
4645 """
4746 try :
48- from config import cosmos_global_actions_container
49-
5047 action = cosmos_global_actions_container .read_item (
5148 item = action_id ,
5249 partition_key = action_id
@@ -71,8 +68,6 @@ def save_global_action(action_data):
7168 dict: Saved action data or None if failed
7269 """
7370 try :
74- from config import cosmos_global_actions_container
75-
7671 # Ensure required fields
7772 if 'id' not in action_data :
7873 action_data ['id' ] = str (uuid .uuid4 ())
@@ -106,8 +101,6 @@ def delete_global_action(action_id):
106101 bool: True if successful, False otherwise
107102 """
108103 try :
109- from config import cosmos_global_actions_container
110-
111104 print (f"🗑️ Deleting global action: { action_id } " )
112105
113106 cosmos_global_actions_container .delete_item (
You can’t perform that action at this time.
0 commit comments