Skip to content

Commit

Permalink
Fix url tag
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaSat committed Aug 7, 2024
1 parent cad1a86 commit 3433f45
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 @@ -39,8 +39,8 @@ async def send_order_event(self, order):
.custom_created_at(created_at)
.to_event(keys)
)
output = await client.send_event(event)
print(f"Nostr event sent: {output}")
await client.send_event(event)
print(f"Nostr event sent: {event.as_json()}")

@sync_to_async
def get_robot_name(self, order):
Expand Down Expand Up @@ -68,11 +68,11 @@ def generate_tags(self, order, robot_name, currency):
Tag.parse(
[
"source",
f"http://{config("HOST_NAME")}/{config("COORDINATOR_ALIAS")}/order/{order.id}",
f"http://{config("HOST_NAME")}/order/{config("COORDINATOR_ALIAS", cast=str).lower()}/{order.id}",
]
),
Tag.parse(["expiration", str(int(order.expires_at.timestamp()))]),
Tag.parse(["y", "robosats", config("COORDINATOR_ALIAS", cast=str)]),
Tag.parse(["y", "robosats", config("COORDINATOR_ALIAS", cast=str).lower()]),
Tag.parse(["n", str(config("NETWORK"))]),
Tag.parse(["layer"] + self.get_layer_tag(order)),
Tag.parse(["bond", str(order.bond_size)]),
Expand Down

0 comments on commit 3433f45

Please sign in to comment.