Skip to content

Commit

Permalink
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/scheduler.py
Original file line number Diff line number Diff line change
@@ -11,8 +11,11 @@


def import_product_db_job() -> None:
db = session()
for flavor in [Flavor.off, Flavor.obf, Flavor.opff, Flavor.opf]:
# launch a new db session for each flavor
# to avoid duplicate code errors
db = session()
# import the products
import_product_db(db=db, flavor=flavor)


0 comments on commit 814078b

Please sign in to comment.