File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,7 @@ def seed_100_users(app: App):
2020
2121 session = db_service .session_factory ()
2222
23- if session .get_bind ().dialect .is_async :
24- execute_coroutine_with_sync_worker (db_service .create_all_async ())
25- else :
26- db_service .create_all ()
23+ db_service .create_all ()
2724
2825 for i in range (100 ):
2926 session .add (user_model (name = f"User Number { i + 1 } " ))
Original file line number Diff line number Diff line change @@ -28,10 +28,7 @@ def _seed_model(app: App):
2828
2929 session = db_service .session_factory ()
3030
31- if session .get_bind ().dialect .is_async :
32- execute_coroutine_with_sync_worker (db_service .create_all_async ())
33- else :
34- db_service .create_all ()
31+ db_service .create_all ()
3532
3633 session .add (user_model (name = "First User" ))
3734 res = session .commit ()
You can’t perform that action at this time.
0 commit comments