Skip to content

Commit

Permalink
Remove redundant database init
Browse files Browse the repository at this point in the history
db already initialized through the lifespan in goosebit/__init.py__
  • Loading branch information
tsagadar committed Aug 29, 2024
1 parent 762df65 commit 2cf10d3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions goosebit/db/db.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tortoise import Tortoise, run_async
from tortoise import Tortoise

from goosebit.db.config import TORTOISE_CONF

Expand All @@ -9,7 +9,3 @@ async def init():

async def close():
await Tortoise.close_connections()


if __name__ == "__main__":
run_async(init())

0 comments on commit 2cf10d3

Please sign in to comment.