(20241129) Spaces removed from JSON 'p_notes' to increase storage efficiency.

This commit is contained in:
2024-11-29 13:48:30 +05:30
parent a9ebc2d6bf
commit c367a5c8b4
+18 -18
View File
@@ -162,15 +162,15 @@ class MailOAuthModel(BaseModel):
db_conn = db_conn, db_conn = db_conn,
proc_name = "entity_integration_save", proc_name = "entity_integration_save",
proc_args = ( proc_args = (
user_info["entityId"], # ............. 'p_entity_id' user_info["entityId"], # ............................................ 'p_entity_id'
service_client, # .................... 'p_provider' service_client, # ................................................... 'p_provider'
"Auth Requested", # .................. 'p_current_status' "Auth Requested", # ................................................. 'p_current_status'
"Auth URL Generated", # .............. 'p_last_action' "Auth URL Generated", # ............................................. 'p_last_action'
None, # .............................. 'p_display_name' None, # ............................................................. 'p_display_name'
None, # .............................. 'p_display_picture' None, # ............................................................. 'p_display_picture'
str(mongo_json["_id"]), # ............ 'p_token_id' str(mongo_json["_id"]), # ........................................... 'p_token_id'
json.to_string({"email": None}), # ... 'p_notes' json.to_string(python_data = {"email": None}, no_space = True), # ... 'p_notes'
user_info["userId"] # ................ 'p_created_by' user_info["userId"] # ............................................... 'p_created_by'
), ),
session_token = session_token session_token = session_token
) )
@@ -226,15 +226,15 @@ class MailOAuthModel(BaseModel):
db_conn = db_conn, db_conn = db_conn,
proc_name = "entity_integration_save", proc_name = "entity_integration_save",
proc_args = ( proc_args = (
mongo_json["user"]["entityId"], # .............. 'p_entity_id' mongo_json["user"]["entityId"], # ............................................. 'p_entity_id'
mongo_json["client"], # ........................ 'p_provider' mongo_json["client"], # ....................................................... 'p_provider'
"Auth Granted", # .............................. 'p_current_status' "Auth Granted", # ............................................................. 'p_current_status'
"Set Token", # ................................. 'p_last_action' "Set Token", # ................................................................ 'p_last_action'
None, # ........................................ 'p_display_name' None, # ....................................................................... 'p_display_name'
None, # ........................................ 'p_display_picture' None, # ....................................................................... 'p_display_picture'
user_identifier, # ............................. 'p_token_id' user_identifier, # ............................................................ 'p_token_id'
json.to_string({"email": token["email"]}), # ... 'p_notes' json.to_string(python_data = {"email": token["email"]}, no_space = True), # ... 'p_notes'
mongo_json["user"]["userId"] # ................. 'p_created_by' mongo_json["user"]["userId"] # ................................................ 'p_created_by'
), ),
session_token = session_token session_token = session_token
) )