Skip to content

Commit

Permalink
Review nostr tags
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaSat committed Aug 7, 2024
1 parent 8d1bee7 commit 3fb7fd8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/nostr.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ def generate_tags(self, order, robot_name):
["expiration", order.expires_at.timestamp()],
["y", "robosats", config("COORDINATOR_ALIAS", cast=str)],
["n", str(config("NETWORK"))],
["layer", self.get_layer_tag(order)],
self.get_layer_tag(order),
["bond", order.bond_size],
["z", "order"],
]

print(tags)
if order.latitude and order.longitude:
tags.extend([["g", pygeohash.encode(order.latitude, order.longitude)]])

Expand All @@ -88,6 +88,6 @@ def get_status_tag(self, order):

def get_layer_tag(self, order):
if order.type == Order.Types.SELL:
return ["onchain", "lightning"]
return ["layer", "onchain", "lightning"]
else:
return ["lightning"]
return ["layer", "lightning"]

0 comments on commit 3fb7fd8

Please sign in to comment.