From c367a5c8b4b52e2fe1aac08ae671c9b0c988ba81 Mon Sep 17 00:00:00 2001 From: khushal Date: Fri, 29 Nov 2024 13:48:30 +0530 Subject: [PATCH] (20241129) Spaces removed from JSON 'p_notes' to increase storage efficiency. --- models/behaviour/mail/oauth.py | 36 +++++++++++++++++----------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/models/behaviour/mail/oauth.py b/models/behaviour/mail/oauth.py index bbcd13b..1556318 100644 --- a/models/behaviour/mail/oauth.py +++ b/models/behaviour/mail/oauth.py @@ -162,15 +162,15 @@ class MailOAuthModel(BaseModel): db_conn = db_conn, proc_name = "entity_integration_save", proc_args = ( - user_info["entityId"], # ............. 'p_entity_id' - service_client, # .................... 'p_provider' - "Auth Requested", # .................. 'p_current_status' - "Auth URL Generated", # .............. 'p_last_action' - None, # .............................. 'p_display_name' - None, # .............................. 'p_display_picture' - str(mongo_json["_id"]), # ............ 'p_token_id' - json.to_string({"email": None}), # ... 'p_notes' - user_info["userId"] # ................ 'p_created_by' + user_info["entityId"], # ............................................ 'p_entity_id' + service_client, # ................................................... 'p_provider' + "Auth Requested", # ................................................. 'p_current_status' + "Auth URL Generated", # ............................................. 'p_last_action' + None, # ............................................................. 'p_display_name' + None, # ............................................................. 'p_display_picture' + str(mongo_json["_id"]), # ........................................... 'p_token_id' + json.to_string(python_data = {"email": None}, no_space = True), # ... 'p_notes' + user_info["userId"] # ............................................... 'p_created_by' ), session_token = session_token ) @@ -226,15 +226,15 @@ class MailOAuthModel(BaseModel): db_conn = db_conn, proc_name = "entity_integration_save", proc_args = ( - mongo_json["user"]["entityId"], # .............. 'p_entity_id' - mongo_json["client"], # ........................ 'p_provider' - "Auth Granted", # .............................. 'p_current_status' - "Set Token", # ................................. 'p_last_action' - None, # ........................................ 'p_display_name' - None, # ........................................ 'p_display_picture' - user_identifier, # ............................. 'p_token_id' - json.to_string({"email": token["email"]}), # ... 'p_notes' - mongo_json["user"]["userId"] # ................. 'p_created_by' + mongo_json["user"]["entityId"], # ............................................. 'p_entity_id' + mongo_json["client"], # ....................................................... 'p_provider' + "Auth Granted", # ............................................................. 'p_current_status' + "Set Token", # ................................................................ 'p_last_action' + None, # ....................................................................... 'p_display_name' + None, # ....................................................................... 'p_display_picture' + user_identifier, # ............................................................ 'p_token_id' + json.to_string(python_data = {"email": token["email"]}, no_space = True), # ... 'p_notes' + mongo_json["user"]["userId"] # ................................................ 'p_created_by' ), session_token = session_token )