|
4 | 4 | from typing import Any, Dict, List, Optional, Union |
5 | 5 |
|
6 | 6 | from .calls import make_request |
7 | | -from .data import ( |
8 | | - AuthType, |
9 | | - BugoutJournal, |
10 | | - BugoutJournalEntities, |
11 | | - BugoutJournalEntity, |
12 | | - BugoutJournalEntityRequest, |
13 | | - BugoutJournalEntries, |
14 | | - BugoutJournalEntriesRequest, |
15 | | - BugoutJournalEntriesTagsRequest, |
16 | | - BugoutJournalEntry, |
17 | | - BugoutJournalEntryContent, |
18 | | - BugoutJournalEntryTags, |
19 | | - BugoutJournalPermissions, |
20 | | - BugoutJournals, |
21 | | - BugoutJournalScopeSpecs, |
22 | | - BugoutScopes, |
23 | | - BugoutSearchResults, |
24 | | - HolderType, |
25 | | - JournalTypes, |
26 | | - Method, |
27 | | -) |
| 7 | +from .data import (AuthType, BugoutJournal, BugoutJournalEntities, |
| 8 | + BugoutJournalEntity, BugoutJournalEntityRequest, |
| 9 | + BugoutJournalEntries, BugoutJournalEntriesRequest, |
| 10 | + BugoutJournalEntriesTagsRequest, BugoutJournalEntry, |
| 11 | + BugoutJournalEntryContent, BugoutJournalEntryTags, |
| 12 | + BugoutJournalPermissions, BugoutJournals, |
| 13 | + BugoutJournalScopeSpecs, BugoutScopes, BugoutSearchResults, |
| 14 | + HolderType, JournalTypes, Method) |
28 | 15 | from .exceptions import InvalidUrlSpec |
29 | 16 | from .settings import REQUESTS_TIMEOUT |
30 | 17 |
|
@@ -624,7 +611,7 @@ def create_entities_pack( |
624 | 611 | "address": entity.address, |
625 | 612 | "blockchain": entity.blockchain, |
626 | 613 | "required_fields": entity.required_fields, |
627 | | - "secondary_fields": entity.extra, |
| 614 | + **entity.extra, |
628 | 615 | } |
629 | 616 | for entity in entities |
630 | 617 | ] |
@@ -701,7 +688,7 @@ def update_entity( |
701 | 688 | ) |
702 | 689 | return BugoutJournalEntity(**result) |
703 | 690 |
|
704 | | - def delete_entry( |
| 691 | + def delete_entity( |
705 | 692 | self, |
706 | 693 | token: Union[str, uuid.UUID], |
707 | 694 | journal_id: Union[str, uuid.UUID], |
|
0 commit comments