Fix fa nostr note tag

This commit is contained in:
koalasat 2024-09-06 10:23:27 +02:00
parent e9620e3c2b
commit 8f5bbd796b
No known key found for this signature in database
GPG Key ID: 2F7F61C6146AB157

View File

@ -58,9 +58,12 @@ class Nostr:
Tag.parse(["s", self.get_status_tag(order)]), Tag.parse(["s", self.get_status_tag(order)]),
Tag.parse(["amt", "0"]), Tag.parse(["amt", "0"]),
Tag.parse( Tag.parse(
["fa"] + [str(order.amount)] ["fa"]
if not order.has_range + (
else [str(order.min_amount), str(order.max_amount)] [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(["pm"] + order.payment_method.split(" ")),
Tag.parse(["premium", str(order.premium)]), Tag.parse(["premium", str(order.premium)]),