File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -227,6 +227,8 @@ def generate_native_viewable_and_light_viewable_from_object(
227227def generate_native_viewable_and_light_viewable_from_file (
228228 geode_object : str , input_filename : str
229229) -> dict [str , Any ]:
230+
231+ session = get_session ()
230232 temp_data_entry = Data .create (
231233 geode_object = geode_object ,
232234 input_file = input_filename ,
@@ -258,10 +260,10 @@ def generate_native_viewable_and_light_viewable_from_file(
258260
259261 data = geode_functions .load (geode_object , copied_full_path )
260262
261- session = get_session ()
262263 if session :
263264 session .delete (temp_data_entry )
264265 session .flush ()
266+ session .commit ()
265267
266268 return save_all_viewables_and_return_info (
267269 geode_object ,
You can’t perform that action at this time.
0 commit comments