Skip to content

Commit

Permalink
add explicit path to load_statuses.py
Browse files Browse the repository at this point in the history
  • Loading branch information
niquerio committed Sep 24, 2024
1 parent d5aab0f commit 3f88dc1
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions aim/digifeeds/bin/load_statuses.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
from aim.digifeeds.database.models import load_statuses
from aim.digifeeds.database.main import SessionLocal
import sys

sys.path = ["", "../../"] + sys.path[1:]
from aim.digifeeds.database.models import load_statuses # noqa: E402
from aim.digifeeds.database.main import SessionLocal # noqa: E402


def main():
with SessionLocal() as db_session:
load_statuses(session=db_session)
load_statuses(session=db_session)


if __name__=='__main__':
sys.exit(main())
if __name__ == "__main__":
sys.exit(main())

0 comments on commit 3f88dc1

Please sign in to comment.