From 1b02f30e71c7a7df582b239cb6cdce30e745a1b8 Mon Sep 17 00:00:00 2001 From: koalasat Date: Wed, 7 Aug 2024 23:03:07 +0200 Subject: [PATCH] Fix integer tag --- api/nostr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/nostr.py b/api/nostr.py index a06573b34..259662768 100644 --- a/api/nostr.py +++ b/api/nostr.py @@ -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)])]