bad ruby habits, must unlearn

This commit is contained in:
Josh Burman
2021-12-15 20:35:27 +00:00
parent e4bb4a9cad
commit 6e1964820f

View File

@ -33,7 +33,7 @@ class SolverRun(BaseModel):
for item in self.items:
# dynamically get the attribute that will be used as an identifier to bundle like items
attribute_id = getattr(item, type_attribute, None)()
attribute_id = getattr(item, type_attribute, None)
# make sure the item has said attribute
if attribute_id != None: