Skip to content

Commit

Permalink
Fix integer tag
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaSat committed Aug 7, 2024
1 parent 032a48a commit 1b02f30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/nostr.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ def generate_tags(self, order, robot_name, currency):
f"http://{config("HOST_NAME")}/{config("COORDINATOR_ALIAS")}/order/{order.id}",
]
),
Tag.parse(["expiration", int(order.expires_at.timestamp())]),
Tag.parse(["expiration", str(int(order.expires_at.timestamp()))]),
Tag.parse(["y", "robosats", config("COORDINATOR_ALIAS", cast=str)]),
Tag.parse(["n", str(config("NETWORK"))]),
Tag.parse(["layer"] + self.get_layer_tag(order)),
Tag.parse(["bond", str(order.bond_size)]),
Tag.parse(["z", "order"]),
]
print(tags)

if order.latitude and order.longitude:
tags.extend(
[Tag.parse(["g", pygeohash.encode(order.latitude, order.longitude)])]
Expand Down

0 comments on commit 1b02f30

Please sign in to comment.