Created
November 15, 2021 08:57
-
-
Save codemation/199778e45d828e636fc8b8143d427cc2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# app.py | |
import asyncio | |
from db import setup_database | |
from models import Employee | |
async def main(): | |
# setup db | |
await setup_database() | |
employed = await Employee.filter(is_employed=True) | |
print(employed) | |
asyncio.run(main()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment