Skip to content

Commit eacae2f

Browse files
Move imports to top of file to resolve circular import issue
Co-authored-by: zohair.ul.hasan <[email protected]>
1 parent b0443e0 commit eacae2f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/db.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
from datetime import datetime
1717
from pytz import timezone
1818
from typing import Any
19+
import config
20+
from quarter_utils import get_quarter_name
1921

2022

2123
def populate_db(data: dict[str, dict[str, Any]]) -> None:
@@ -210,10 +212,6 @@ def create_tables(cur: cursor) -> None:
210212

211213

212214
def update_metadata(cur: cursor) -> None:
213-
# Import here to avoid circular imports
214-
import config
215-
from quarter_utils import get_quarter_name
216-
217215
tz = timezone("US/Eastern")
218216
current_datetime = datetime.now(tz).strftime("%m/%d/%y %I:%M %p")
219217

0 commit comments

Comments
 (0)