-
-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
344 additions
and
338 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,5 +1,5 @@ | ||
import typing as t | ||
from datetime import datetime, timedelta | ||
from typing import List | ||
|
||
import click | ||
from schema import Booking, City, Country, Host, Place, Review, User | ||
|
@@ -26,7 +26,7 @@ def main(config): | |
Session = sessionmaker(bind=engine, autoflush=True) | ||
session = Session() | ||
|
||
users: List[User] = [ | ||
users: t.List[User] = [ | ||
User(email="[email protected]"), | ||
User(email="[email protected]"), | ||
User(email="[email protected]"), | ||
|
@@ -35,7 +35,7 @@ def main(config): | |
User(email="[email protected]"), | ||
] | ||
|
||
hosts: List[Host] = [ | ||
hosts: t.List[Host] = [ | ||
Host(email="[email protected]"), | ||
Host(email="[email protected]"), | ||
Host(email="[email protected]"), | ||
|
@@ -45,7 +45,7 @@ def main(config): | |
Host(email="[email protected]"), | ||
] | ||
|
||
cities: List[City] = [ | ||
cities: t.List[City] = [ | ||
City( | ||
name="Manila", | ||
country=Country( | ||
|
@@ -90,7 +90,7 @@ def main(config): | |
), | ||
] | ||
|
||
places: List[Place] = [ | ||
places: t.List[Place] = [ | ||
Place( | ||
host=hosts[0], | ||
city=cities[0], | ||
|
@@ -123,7 +123,7 @@ def main(config): | |
), | ||
] | ||
|
||
reviews: List[Review] = [ | ||
reviews: t.List[Review] = [ | ||
Review( | ||
booking=Booking( | ||
user=users[0], | ||
|
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
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
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
Oops, something went wrong.