Debug
This commit is contained in:
parent
6398e7b62f
commit
354b4a6f31
1 changed files with 3 additions and 9 deletions
|
|
@ -139,13 +139,7 @@ class ShowDatabaseService:
|
|||
dados_json = json.loads(dados_json["file"])
|
||||
|
||||
# --- 1. Extração de Estruturas e Metadata ---
|
||||
standard_structure_json_string = dados_json.get("standard_structure_json")
|
||||
standard_structure_data: Dict[str, Any] = {}
|
||||
if standard_structure_json_string:
|
||||
try:
|
||||
standard_structure_data = json.loads(standard_structure_json_string)
|
||||
except json.JSONDecodeError:
|
||||
pass
|
||||
standard_structure_data: Dict[str, Any] = dados_json.get("standard_structure_json", {})
|
||||
|
||||
database_data = dados_json.get("database", {})
|
||||
client_structure: Dict[str, Any] = database_data.get("structure", {})
|
||||
|
|
@ -180,8 +174,8 @@ class ShowDatabaseService:
|
|||
"last_modified": last_modified,
|
||||
# NOVO CAMPO: Retorna o que falta no cliente
|
||||
"inconsistencies": inconsistencies_data,
|
||||
"standard_structure_data": standard_structure_json_string,
|
||||
"client_structure": client_structure
|
||||
# "standard_structure_data": standard_structure_data,
|
||||
# "client_structure": client_structure
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue