From 8287dc194740369bcbf2514df693a9263b5d3d39 Mon Sep 17 00:00:00 2001 From: s3lph Date: Sat, 23 Nov 2024 04:37:47 +0100 Subject: [PATCH] fix: codestyle --- matemat/db/facade.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/matemat/db/facade.py b/matemat/db/facade.py index b8a8ef7..3d6c33a 100644 --- a/matemat/db/facade.py +++ b/matemat/db/facade.py @@ -370,7 +370,8 @@ class MatematDatabase(object): FROM products ORDER BY name '''): product_id, name, price_member, price_external, custom_price, stock, stockable, ean = row - products.append(Product(product_id, name, price_member, price_external, custom_price, stockable, stock, ean)) + products.append( + Product(product_id, name, price_member, price_external, custom_price, stockable, stock, ean)) return products def get_product(self, pid: int) -> Product: @@ -730,11 +731,13 @@ class MatematDatabase(object): for row in rows: ta_id, value, old_balance, date, c, d, m, c_prod, m_agent, m_reason = row if c == ta_id: - t: Transaction = Consumption(ta_id, user, value, old_balance, datetime.fromtimestamp(date, UTC), c_prod) + t: Transaction = Consumption(ta_id, user, value, old_balance, + datetime.fromtimestamp(date, UTC), c_prod) elif d == ta_id: t = Deposit(ta_id, user, value, old_balance, datetime.fromtimestamp(date, UTC)) elif m == ta_id: - t = Modification(ta_id, user, value, old_balance, datetime.fromtimestamp(date, UTC), m_agent, m_reason) + t = Modification(ta_id, user, value, old_balance, + datetime.fromtimestamp(date, UTC), m_agent, m_reason) else: t = Transaction(ta_id, user, value, old_balance, datetime.fromtimestamp(date, UTC)) transactions.append(t)