robosats/api
BitcoinVeneto 668e62af91
Update nostr.py
Fix: Update add_relays() to add_relay() in nostr.py
Description
This PR fixes an issue , the method add_relays() was renamed to add_relay() and now accepts a single string instead of a list.

Error Message

AttributeError: 'Client' object has no attribute 'add_relays'. Did you mean: 'add_relay'?
After changing the code to use add_relay(), another error occurred:


The error occurred because the updated add_relay() method expects a string but was passed a list. This was due to the previous usage of add_relays() which accepted a list of URLs.


await client.add_relays(["ws://localhost:7777"])
To:
await client.add_relay("ws://localhost:7777")
2025-02-23 12:08:54 +01:00
..
lightning Revert "Store status notifications" 2024-10-01 19:35:57 +00:00
management/commands Revert "Store status notifications" 2024-10-01 19:35:57 +00:00
migrations Fix Successful typo 2024-08-22 10:32:02 +02:00
models Revert "Store status notifications" 2024-10-01 19:35:57 +00:00
nick_generator fix linter remove unused imports and variables (#1375) 2024-09-09 00:53:11 +00:00
tests Add tests for onchain address, pgp sign verification. Improve Dockerfile 2023-11-17 13:02:30 +00:00
__init__.py Create api django app 2022-01-01 14:13:27 -08:00
admin.py Revert "Store status notifications" 2024-10-01 19:35:57 +00:00
apps.py Re-format all python code 2022-02-17 11:50:10 -08:00
logics.py Nostr order should hide when a taker sends the action 2024-11-06 11:35:03 +01:00
nostr.py Update nostr.py 2025-02-23 12:08:54 +01:00
notifications.py Revert "Store status notifications" 2024-10-01 19:35:57 +00:00
oas_schemas.py Fix Successful typo 2024-08-22 10:32:02 +02:00
serializers.py Include created_at 2024-07-09 21:50:48 +02:00
tasks.py Revert "Store status notifications" 2024-10-01 19:35:57 +00:00
urls.py Feat: add notifications api endpoint (#1347) 2024-06-27 16:47:23 +00:00
utils.py Merge branch 'main' into fix-verify-signed-message 2024-10-19 15:00:29 +00:00
views.py Fix endpoint fields 2024-07-09 21:39:15 +02:00