From 8f5bbd796bf3fc0a04b6adbe7288abec61e471fe Mon Sep 17 00:00:00 2001 From: koalasat Date: Fri, 6 Sep 2024 10:23:27 +0200 Subject: [PATCH] Fix fa nostr note tag --- api/nostr.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/api/nostr.py b/api/nostr.py index 1027c13f..2792aa7d 100644 --- a/api/nostr.py +++ b/api/nostr.py @@ -58,9 +58,12 @@ class Nostr: Tag.parse(["s", self.get_status_tag(order)]), Tag.parse(["amt", "0"]), Tag.parse( - ["fa"] + [str(order.amount)] - if not order.has_range - else [str(order.min_amount), str(order.max_amount)] + ["fa"] + + ( + [str(order.amount)] + if not order.has_range + else [str(order.min_amount), str(order.max_amount)] + ) ), Tag.parse(["pm"] + order.payment_method.split(" ")), Tag.parse(["premium", str(order.premium)]),