WIP: Started to add more stats to the product stats page.
This commit is contained in:
@@ -44,7 +44,10 @@ class DatabaseController(ABC):
|
||||
"""
|
||||
obj = of.__new__(of)
|
||||
for attr, value in with_fields.items():
|
||||
setattr(obj, attr, value)
|
||||
try:
|
||||
setattr(obj, attr, value)
|
||||
except KeyError:
|
||||
return of(value)
|
||||
return obj
|
||||
|
||||
def do(self, query: str, params: list[str]):
|
||||
|
||||
Reference in New Issue
Block a user