fixed external_api bug
This commit is contained in:
parent
a279e2a95a
commit
6e08825ad2
54
.gitignore
vendored
54
.gitignore
vendored
@ -3,4 +3,56 @@ sites
|
|||||||
static/css/uikit-rtl.css
|
static/css/uikit-rtl.css
|
||||||
static/css/uikit-rtl.min.css
|
static/css/uikit-rtl.min.css
|
||||||
static/css/uikit.css
|
static/css/uikit.css
|
||||||
static/css/uikit.min.css
|
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
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -227,7 +227,7 @@ def postTransaction(conn, site_name, user_id, data: dict):
|
|||||||
|
|
||||||
transaction_time = datetime.datetime.now()
|
transaction_time = datetime.datetime.now()
|
||||||
|
|
||||||
cost_layer = postsqldb.CostLayerPayload(
|
cost_layer = MyDataclasses.CostLayerPayload(
|
||||||
aquisition_date=transaction_time,
|
aquisition_date=transaction_time,
|
||||||
quantity=float(data['quantity']),
|
quantity=float(data['quantity']),
|
||||||
cost=float(data['cost']),
|
cost=float(data['cost']),
|
||||||
@ -235,7 +235,7 @@ def postTransaction(conn, site_name, user_id, data: dict):
|
|||||||
vendor=int(data['vendor']),
|
vendor=int(data['vendor']),
|
||||||
expires=data['expires']
|
expires=data['expires']
|
||||||
)
|
)
|
||||||
transaction = postsqldb.TransactionPayload(
|
transaction = MyDataclasses.TransactionPayload(
|
||||||
timestamp=transaction_time,
|
timestamp=transaction_time,
|
||||||
logistics_info_id=int(data['logistics_info_id']),
|
logistics_info_id=int(data['logistics_info_id']),
|
||||||
barcode=data['barcode'],
|
barcode=data['barcode'],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user