mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-08 07:18:47 +00:00
Return all Nostr event IDs
This commit is contained in:
17
src/main.py
17
src/main.py
@@ -365,14 +365,15 @@ def handle_post_to_nostr(
|
||||
Handles the action of posting the encrypted password index to Nostr.
|
||||
"""
|
||||
try:
|
||||
event_id = password_manager.sync_vault(alt_summary=alt_summary)
|
||||
if event_id:
|
||||
print(
|
||||
colored(
|
||||
f"\N{WHITE HEAVY CHECK MARK} Sync complete. Event ID: {event_id}",
|
||||
"green",
|
||||
)
|
||||
)
|
||||
result = password_manager.sync_vault(alt_summary=alt_summary)
|
||||
if result:
|
||||
print(colored("\N{WHITE HEAVY CHECK MARK} Sync complete.", "green"))
|
||||
print("Event IDs:")
|
||||
print(f" manifest: {result['manifest_id']}")
|
||||
for cid in result["chunk_ids"]:
|
||||
print(f" chunk: {cid}")
|
||||
for did in result["delta_ids"]:
|
||||
print(f" delta: {did}")
|
||||
logging.info("Encrypted index posted to Nostr successfully.")
|
||||
else:
|
||||
print(colored("\N{CROSS MARK} Sync failed…", "red"))
|
||||
|
Reference in New Issue
Block a user