Merge pull request #1443 from RoboSats/use-nostr-as-cache-system

Fix fa nostr note tag
This commit is contained in:
KoalaSat 2024-09-06 08:24:12 +00:00 committed by GitHub
commit 5244b2d769
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)]),