Skip to content

Commit e5f25b9

Browse files
committed
Revert "Fixed bug in list_scopes"
This reverts commit 33ecf56.
1 parent acefad7 commit e5f25b9

2 files changed

Lines changed: 2 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.8"
10+
__version__ = "0.0.7"
1111

1212
__all__ = (
1313
"__author__",

bugout/journal.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from .data import (
66
BugoutJournal,
77
BugoutJournals,
8-
BugoutScope,
98
BugoutScopes,
109
BugoutJournalScopeSpecs,
1110
BugoutJournalEntry,
@@ -46,8 +45,7 @@ def list_scopes(self, token: Union[str, uuid.UUID], api: str) -> BugoutScopes:
4645
result = self._call(
4746
method=Method.get, path=scopes_path, headers=headers, json=json
4847
)
49-
scopes = [BugoutScope(**item) for item in result]
50-
return BugoutScopes(scopes=scopes)
48+
return BugoutScopes(**result)
5149

5250
def get_journal_scopes(
5351
self, token: Union[str, uuid.UUID], journal_id: Union[str, uuid.UUID]

0 commit comments

Comments
 (0)