Skip to content

Commit

Permalink
fixup!
Browse files Browse the repository at this point in the history
  • Loading branch information
dni committed Sep 19, 2024
1 parent d04a892 commit a0a2736
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions views_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,7 @@ async def api_update_tip(
)

if tip.wallet != key_type.wallet.id:
raise HTTPException(
status_code=HTTPStatus.FORBIDDEN, detail="Not your tip."
)
raise HTTPException(status_code=HTTPStatus.FORBIDDEN, detail="Not your tip.")

for k, v in data.dict().items():
setattr(tip, k, v)
Expand All @@ -168,9 +166,7 @@ async def api_update_tipjar(
)

if tipjar.wallet != key_type.wallet.id:
raise HTTPException(
status_code=HTTPStatus.FORBIDDEN, detail="Not your tipjar."
)
raise HTTPException(status_code=HTTPStatus.FORBIDDEN, detail="Not your tipjar.")

for k, v in data.dict().items():
setattr(tipjar, k, v)
Expand Down

0 comments on commit a0a2736

Please sign in to comment.