Pre-Code cleanup

This commit is contained in:
lwark
2025-09-03 09:17:23 -05:00
parent ca719711a9
commit b2225ef731

View File

@@ -222,10 +222,8 @@ class BaseClass(Base):
""" """
if not objects: if not objects:
try: try:
# records = [obj.to_sub_dict(**kwargs) for obj in cls.query()]
records = [obj.details_dict(**kwargs) for obj in cls.query()] records = [obj.details_dict(**kwargs) for obj in cls.query()]
except AttributeError: except AttributeError:
# records = [obj.to_dict(**kwargs) for obj in cls.query(page_size=0)]
records = [obj.details_dict(**kwargs) for obj in cls.query(page_size=0)] records = [obj.details_dict(**kwargs) for obj in cls.query(page_size=0)]
else: else:
try: try:
@@ -248,7 +246,6 @@ class BaseClass(Base):
instance = cls() instance = cls()
new = True new = True
for k, v in sanitized_kwargs.items(): for k, v in sanitized_kwargs.items():
# logger.debug(f"QorC Setting {k} to {v}")
if k == "id": if k == "id":
continue continue
try: try: