Fixed formatting

This commit is contained in:
Ben Arc
2021-08-22 23:05:39 +01:00
parent bbdd41ef87
commit e03eb3c82b
10 changed files with 122 additions and 132 deletions
+3 -3
View File
@@ -37,7 +37,7 @@ async def api_bleskomats():
)
@bleskomat_ext.get("/api/v1/bleskomat/<bleskomat_id>")
@bleskomat_ext.get("/api/v1/bleskomat/{bleskomat_id}")
@api_check_wallet_key("admin")
async def api_bleskomat_retrieve(bleskomat_id):
bleskomat = await get_bleskomat(bleskomat_id)
@@ -58,7 +58,7 @@ class CreateData(BaseModel):
fee: Union[str, int, float] = Query(...)
@bleskomat_ext.post("/api/v1/bleskomat")
@bleskomat_ext.put("/api/v1/bleskomat/<bleskomat_id>")
@bleskomat_ext.put("/api/v1/bleskomat/{bleskomat_id}")
@api_check_wallet_key("admin")
async def api_bleskomat_create_or_update(data: CreateData, bleskomat_id=None):
try:
@@ -93,7 +93,7 @@ async def api_bleskomat_create_or_update(data: CreateData, bleskomat_id=None):
)
@bleskomat_ext.delete("/api/v1/bleskomat/<bleskomat_id>")
@bleskomat_ext.delete("/api/v1/bleskomat/{bleskomat_id}")
@api_check_wallet_key("admin")
async def api_bleskomat_delete(bleskomat_id):
bleskomat = await get_bleskomat(bleskomat_id)