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 b515c4e commit 51ff6d5
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 @@ -3,7 +3,7 @@
import uuid

from asgiref.sync import sync_to_async
from nostr_sdk import Keys, Client, EventBuilder, NostrSigner
from nostr_sdk import Keys, Client, EventBuilder, NostrSigner, Kind
from api.models import Order
from decouple import config

Expand All @@ -30,9 +30,9 @@ async def send_order_event(self, order):

robot_name = await self.get_robot_name(order)

event = EventBuilder(38383, "", self.generate_tags(order, robot_name)).to_event(
keys
)
event = EventBuilder(
Kind(38383), "", self.generate_tags(order, robot_name)
).to_event(keys)
event.custom_created_at(order.created_at.timestamp())
output = await client.send_event(event)
print(f"Nostr event sent: {output}")
Expand Down

0 comments on commit 51ff6d5

Please sign in to comment.