Skip to content

Commit

Permalink
⚙ FIX: Circular import
Browse files Browse the repository at this point in the history
  • Loading branch information
Thaza-Kun committed Nov 21, 2022
1 parent ef20d92 commit 54132fc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions samudra/conf/database/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@
import peewee as pw

from conf.local import get_database_info
from conf.setup import settings

# ! Importing settings will create circular import
# from conf.setup import settings
from samudra.conf.database.options import DatabaseEngine

# TODO: Enforce requirements per database engine


# As settings
ENGINE = settings.get("database").get("engine", None)
# ENGINE = settings.get("database").get("engine", None)
# DATABASE_NAME = settings.get("database").get("name", "samudra")

db_state_default = {"closed": None, "conn": None, "ctx": None, "transactions": None}
Expand Down

0 comments on commit 54132fc

Please sign in to comment.