mirror of
https://github.com/gmbrax/Pilgrim.git
synced 2026-11-10 18:50:18 +00:00
Added the diary select screen
This commit is contained in:
parent
03fb3b23c2
commit
58c7bfd8e9
@@ -6,9 +6,10 @@ class TravelDiaryServiceMock(TravelDiaryService):
|
||||
def __init__(self):
|
||||
super().__init__(None)
|
||||
self.mock_data = {
|
||||
1:TravelDiary(id=1,name="Montreal")
|
||||
1:TravelDiary(id=1,name="Montreal"),
|
||||
2:TravelDiary(id=2,name="Rio de Janeiro"),
|
||||
}
|
||||
self._next_id = 2
|
||||
self._next_id = 3
|
||||
|
||||
def create(self, name: str):
|
||||
new_travel_diary = TravelDiary(id=self._next_id,name=name)
|
||||
|
||||
Reference in New Issue
Block a user