Skip to content

Commit

Permalink
Merge pull request #1443 from RoboSats/use-nostr-as-cache-system
Browse files Browse the repository at this point in the history
Fix fa nostr note tag
  • Loading branch information
KoalaSat authored Sep 6, 2024
2 parents ce8799d + 8f5bbd7 commit 5244b2d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions api/nostr.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,12 @@ def generate_tags(self, order, robot_name, currency):
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)]),
Expand Down

0 comments on commit 5244b2d

Please sign in to comment.