Skip to content

Commit 01e02f4

Browse files
authored
Merge pull request #6 from bugout-dev/fix-5-list-scopes
Fixed bug in list_scopes
2 parents 5303ae5 + bc285c4 commit 01e02f4

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

bugout/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
__email__ = "engineering@bugout.dev"
99
__license__ = "MIT"
10-
__version__ = "0.0.7"
10+
__version__ = "0.0.8"
1111

1212
__all__ = (
1313
"__author__",

bugout/group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def set_user_group(
8484
)
8585

8686
data: Dict[str, Any] = {
87-
"user_type": user_type,
87+
"user_type": user_type.value,
8888
}
8989
if username is not None:
9090
data.update({"username": username})

bugout/journal.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ def update_journal_scopes(
6969
) -> BugoutJournalScopeSpecs:
7070
journal_scopes_path = f"journals/{journal_id}/scopes"
7171
json = {
72-
"holder_type": holder_type,
73-
"holder_id": holder_id,
72+
"holder_type": holder_type.value,
73+
"holder_id": str(holder_id),
7474
"permission_list": permission_list,
7575
}
7676
headers = {

0 commit comments

Comments
 (0)