Skip to content

Instantly share code, notes, and snippets.

@codemation
Created November 15, 2021 08:57
Show Gist options
  • Save codemation/199778e45d828e636fc8b8143d427cc2 to your computer and use it in GitHub Desktop.
Save codemation/199778e45d828e636fc8b8143d427cc2 to your computer and use it in GitHub Desktop.
# 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