Se arreglo el problema de company

This commit is contained in:
2026-01-22 09:49:59 -06:00
parent 69fe605901
commit e338236a1c
7 changed files with 311 additions and 191 deletions

15
backend/debug_mapper.py Normal file
View File

@@ -0,0 +1,15 @@
from api.v1.modules.a76.general_catalogs.company.models import Company
from api.v1.modules.a76.general_catalogs.company.service import CompanyService
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
print("Checking Company Mapper keys...")
try:
keys = Company.__mapper__.c.keys()
print(f"Keys found: {keys}")
if 'logo' in keys:
print("SUCCESS: 'logo' is in keys")
else:
print("FAILURE: 'logo' is NOT in keys")
except Exception as e:
print(f"Error: {e}")