Se arreglo el problema de company
This commit is contained in:
15
backend/debug_mapper.py
Normal file
15
backend/debug_mapper.py
Normal 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}")
|
||||
Reference in New Issue
Block a user