-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(app): use storage to list topics
- Loading branch information
Showing
3 changed files
with
18 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
from .models import ParticipantId, UserEnrollment | ||
from typing import Generator | ||
|
||
from .models import ParticipantId, Topic, UserEnrollment | ||
from .settings import GlobalSettings | ||
|
||
|
||
class Storage: | ||
def get_user_enrollment_by_participant_id(self, participant_id: ParticipantId) -> UserEnrollment: | ||
raise NotImplementedError | ||
|
||
def get_topics(self) -> Generator[Topic, None, None]: | ||
raise NotImplementedError | ||
|
||
|
||
def gen_storage(settings: GlobalSettings) -> Storage: | ||
return Storage() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters