File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -144,20 +144,21 @@ def install_demo_data(
144144 if name not in self .config .demo_data ():
145145 raise PumException (f"Demo data '{ name } ' not found in the configuration." )
146146
147- demo_data_file = self .config .base_path / self .config .demo_data ()[name ]
148- logger .info ("Installing demo data from %s" , demo_data_file )
147+ logger .info (f"Installing demo data { name } " )
149148
150149 for pre_hook in self .config .pre_hook_handlers ():
151150 pre_hook .execute (connection = connection , commit = False , parameters = parameters )
152151
153152 connection .commit ()
154153
155154 parameters_literals = SqlContent .prepare_parameters (parameters )
156- SqlContent (sql = demo_data_file ).execute (
157- connection = connection ,
158- commit = False ,
159- parameters = parameters_literals ,
160- )
155+ for demo_data_file in self .config .demo_data ()[name ]:
156+ demo_data_file = self .config .base_path / demo_data_file
157+ SqlContent (sql = demo_data_file ).execute (
158+ connection = connection ,
159+ commit = False ,
160+ parameters = parameters_literals ,
161+ )
161162
162163 connection .commit ()
163164
You can’t perform that action at this time.
0 commit comments