diff --git a/.gitignore b/.gitignore index 8c5c3bb..05cb92a 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,56 @@ sites static/css/uikit-rtl.css static/css/uikit-rtl.min.css static/css/uikit.css -static/css/uikit.min.css \ No newline at end of file +static/css/uikit.min.css +__pycache__/api_admin.cpython-312.pyc +__pycache__/api_admin.cpython-313.pyc +__pycache__/api.cpython-312.pyc +__pycache__/api.cpython-313.pyc +__pycache__/config.cpython-312.pyc +__pycache__/config.cpython-313.pyc +__pycache__/database_admin.cpython-312.pyc +__pycache__/database_admin.cpython-313.pyc +__pycache__/database.cpython-312.pyc +__pycache__/database.cpython-313.pyc +__pycache__/external_API.cpython-312.pyc +__pycache__/external_API.cpython-313.pyc +__pycache__/group_api.cpython-312.pyc +__pycache__/group_api.cpython-313.pyc +__pycache__/main.cpython-312.pyc +__pycache__/main.cpython-313.pyc +__pycache__/manage.cpython-312.pyc +__pycache__/manage.cpython-313.pyc +__pycache__/MyDataclasses.cpython-312.pyc +__pycache__/MyDataclasses.cpython-313.pyc +__pycache__/postsqldb.cpython-312.pyc +__pycache__/postsqldb.cpython-313.pyc +__pycache__/process.cpython-312.pyc +__pycache__/process.cpython-313.pyc +__pycache__/receipts_API.cpython-312.pyc +__pycache__/receipts_API.cpython-313.pyc +__pycache__/shopping_list_API.cpython-312.pyc +__pycache__/shopping_list_API.cpython-313.pyc +__pycache__/user_api.cpython-312.pyc +__pycache__/user_api.cpython-313.pyc +__pycache__/webpush.cpython-312.pyc +__pycache__/webpush.cpython-313.pyc +__pycache__/workshop_api.cpython-312.pyc +__pycache__/workshop_api.cpython-313.pyc +application/recipes/__pycache__/__init__.cpython-312.pyc +application/recipes/__pycache__/__init__.cpython-313.pyc +application/recipes/__pycache__/database_recipes.cpython-312.pyc +application/recipes/__pycache__/database_recipes.cpython-313.pyc +application/recipes/__pycache__/recipes_api.cpython-312.pyc +application/recipes/__pycache__/recipes_api.cpython-313.pyc +application/__pycache__/__init__.cpython-312.pyc +application/__pycache__/__init__.cpython-313.pyc +application/__pycache__/postsqldb.cpython-312.pyc +application/__pycache__/postsqldb.cpython-313.pyc +application/items/__pycache__/__init__.cpython-312.pyc +application/items/__pycache__/__init__.cpython-313.pyc +application/items/__pycache__/database_items.cpython-312.pyc +application/items/__pycache__/database_items.cpython-313.pyc +application/items/__pycache__/items_API.cpython-312.pyc +application/items/__pycache__/items_API.cpython-313.pyc +application/items/__pycache__/items_processes.cpython-312.pyc +application/items/__pycache__/items_processes.cpython-313.pyc diff --git a/__pycache__/MyDataclasses.cpython-312.pyc b/__pycache__/MyDataclasses.cpython-312.pyc index 1ac8066..9d53e3e 100644 Binary files a/__pycache__/MyDataclasses.cpython-312.pyc and b/__pycache__/MyDataclasses.cpython-312.pyc differ diff --git a/__pycache__/api.cpython-312.pyc b/__pycache__/api.cpython-312.pyc index 668ac56..a8822b3 100644 Binary files a/__pycache__/api.cpython-312.pyc and b/__pycache__/api.cpython-312.pyc differ diff --git a/__pycache__/api_admin.cpython-312.pyc b/__pycache__/api_admin.cpython-312.pyc index c3af222..80ce3ec 100644 Binary files a/__pycache__/api_admin.cpython-312.pyc and b/__pycache__/api_admin.cpython-312.pyc differ diff --git a/__pycache__/config.cpython-312.pyc b/__pycache__/config.cpython-312.pyc index 7cae409..d4c757c 100644 Binary files a/__pycache__/config.cpython-312.pyc and b/__pycache__/config.cpython-312.pyc differ diff --git a/__pycache__/database.cpython-312.pyc b/__pycache__/database.cpython-312.pyc index 3aa5ad5..8fd2e27 100644 Binary files a/__pycache__/database.cpython-312.pyc and b/__pycache__/database.cpython-312.pyc differ diff --git a/__pycache__/database_admin.cpython-312.pyc b/__pycache__/database_admin.cpython-312.pyc index 0b0b227..da566f8 100644 Binary files a/__pycache__/database_admin.cpython-312.pyc and b/__pycache__/database_admin.cpython-312.pyc differ diff --git a/__pycache__/external_API.cpython-312.pyc b/__pycache__/external_API.cpython-312.pyc index 98e1ac3..2727c78 100644 Binary files a/__pycache__/external_API.cpython-312.pyc and b/__pycache__/external_API.cpython-312.pyc differ diff --git a/__pycache__/group_api.cpython-312.pyc b/__pycache__/group_api.cpython-312.pyc index 71ca217..2a3dd0c 100644 Binary files a/__pycache__/group_api.cpython-312.pyc and b/__pycache__/group_api.cpython-312.pyc differ diff --git a/__pycache__/main.cpython-312.pyc b/__pycache__/main.cpython-312.pyc index 534163c..fc6b809 100644 Binary files a/__pycache__/main.cpython-312.pyc and b/__pycache__/main.cpython-312.pyc differ diff --git a/__pycache__/manage.cpython-312.pyc b/__pycache__/manage.cpython-312.pyc index 659efe4..59d0343 100644 Binary files a/__pycache__/manage.cpython-312.pyc and b/__pycache__/manage.cpython-312.pyc differ diff --git a/__pycache__/postsqldb.cpython-312.pyc b/__pycache__/postsqldb.cpython-312.pyc index 94f16ee..1b904a5 100644 Binary files a/__pycache__/postsqldb.cpython-312.pyc and b/__pycache__/postsqldb.cpython-312.pyc differ diff --git a/__pycache__/process.cpython-312.pyc b/__pycache__/process.cpython-312.pyc index a5ac356..405412a 100644 Binary files a/__pycache__/process.cpython-312.pyc and b/__pycache__/process.cpython-312.pyc differ diff --git a/__pycache__/receipts_API.cpython-312.pyc b/__pycache__/receipts_API.cpython-312.pyc index eff1523..2ed9a4f 100644 Binary files a/__pycache__/receipts_API.cpython-312.pyc and b/__pycache__/receipts_API.cpython-312.pyc differ diff --git a/__pycache__/shopping_list_API.cpython-312.pyc b/__pycache__/shopping_list_API.cpython-312.pyc index 6af6dfd..127ad77 100644 Binary files a/__pycache__/shopping_list_API.cpython-312.pyc and b/__pycache__/shopping_list_API.cpython-312.pyc differ diff --git a/__pycache__/user_api.cpython-312.pyc b/__pycache__/user_api.cpython-312.pyc index 6e65e3d..64c3ee8 100644 Binary files a/__pycache__/user_api.cpython-312.pyc and b/__pycache__/user_api.cpython-312.pyc differ diff --git a/__pycache__/webpush.cpython-312.pyc b/__pycache__/webpush.cpython-312.pyc index 34fe056..77f4daf 100644 Binary files a/__pycache__/webpush.cpython-312.pyc and b/__pycache__/webpush.cpython-312.pyc differ diff --git a/__pycache__/workshop_api.cpython-312.pyc b/__pycache__/workshop_api.cpython-312.pyc index 431faa6..795ece8 100644 Binary files a/__pycache__/workshop_api.cpython-312.pyc and b/__pycache__/workshop_api.cpython-312.pyc differ diff --git a/application/__pycache__/__init__.cpython-312.pyc b/application/__pycache__/__init__.cpython-312.pyc index d3088b4..d91c346 100644 Binary files a/application/__pycache__/__init__.cpython-312.pyc and b/application/__pycache__/__init__.cpython-312.pyc differ diff --git a/application/__pycache__/postsqldb.cpython-312.pyc b/application/__pycache__/postsqldb.cpython-312.pyc index 7b040b4..ef5768f 100644 Binary files a/application/__pycache__/postsqldb.cpython-312.pyc and b/application/__pycache__/postsqldb.cpython-312.pyc differ diff --git a/application/items/__pycache__/__init__.cpython-312.pyc b/application/items/__pycache__/__init__.cpython-312.pyc index 9e43997..82922eb 100644 Binary files a/application/items/__pycache__/__init__.cpython-312.pyc and b/application/items/__pycache__/__init__.cpython-312.pyc differ diff --git a/application/items/__pycache__/database_items.cpython-312.pyc b/application/items/__pycache__/database_items.cpython-312.pyc index d25c6cc..0f710a6 100644 Binary files a/application/items/__pycache__/database_items.cpython-312.pyc and b/application/items/__pycache__/database_items.cpython-312.pyc differ diff --git a/application/items/__pycache__/items_API.cpython-312.pyc b/application/items/__pycache__/items_API.cpython-312.pyc index 3cedcb4..9eb617c 100644 Binary files a/application/items/__pycache__/items_API.cpython-312.pyc and b/application/items/__pycache__/items_API.cpython-312.pyc differ diff --git a/application/items/__pycache__/items_processes.cpython-312.pyc b/application/items/__pycache__/items_processes.cpython-312.pyc index 9d67cee..d6cd3a5 100644 Binary files a/application/items/__pycache__/items_processes.cpython-312.pyc and b/application/items/__pycache__/items_processes.cpython-312.pyc differ diff --git a/application/recipes/__pycache__/__init__.cpython-312.pyc b/application/recipes/__pycache__/__init__.cpython-312.pyc index 553789b..4b4870f 100644 Binary files a/application/recipes/__pycache__/__init__.cpython-312.pyc and b/application/recipes/__pycache__/__init__.cpython-312.pyc differ diff --git a/application/recipes/__pycache__/database_recipes.cpython-312.pyc b/application/recipes/__pycache__/database_recipes.cpython-312.pyc index 1b66db5..d390b66 100644 Binary files a/application/recipes/__pycache__/database_recipes.cpython-312.pyc and b/application/recipes/__pycache__/database_recipes.cpython-312.pyc differ diff --git a/application/recipes/__pycache__/recipes_api.cpython-312.pyc b/application/recipes/__pycache__/recipes_api.cpython-312.pyc index 7319074..95e6405 100644 Binary files a/application/recipes/__pycache__/recipes_api.cpython-312.pyc and b/application/recipes/__pycache__/recipes_api.cpython-312.pyc differ diff --git a/process.py b/process.py index 9424803..2eee402 100644 --- a/process.py +++ b/process.py @@ -227,7 +227,7 @@ def postTransaction(conn, site_name, user_id, data: dict): transaction_time = datetime.datetime.now() - cost_layer = postsqldb.CostLayerPayload( + cost_layer = MyDataclasses.CostLayerPayload( aquisition_date=transaction_time, quantity=float(data['quantity']), cost=float(data['cost']), @@ -235,7 +235,7 @@ def postTransaction(conn, site_name, user_id, data: dict): vendor=int(data['vendor']), expires=data['expires'] ) - transaction = postsqldb.TransactionPayload( + transaction = MyDataclasses.TransactionPayload( timestamp=transaction_time, logistics_info_id=int(data['logistics_info_id']), barcode=data['barcode'],