fix: don't even try to refactor

This commit is contained in:
Vlad Stan
2022-10-07 14:51:06 +03:00
parent 14e9df1d3e
commit 8f32e56b71
4 changed files with 20 additions and 12 deletions
+5
View File
@@ -93,6 +93,11 @@ async def delete_cashu(cashu_id) -> None:
##########################################
async def store_promises(amounts: List[int], B_s: List[str], C_s: List[str], cashu_id: str):
for amount, B_, C_ in zip(amounts, B_s, C_s):
await store_promise(amount, B_, C_, cashu_id)
async def store_promise(amount: int, B_: str, C_: str, cashu_id: str):
promise_id = urlsafe_short_hash()