mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 09:47:08 +00:00
Run post-import functions after final lines.
The reason why need to do it like this instead of relying on a trigger is because the entry in final_lines is created first and the final_shots are populated. If we first the trigger on final_lines it is not going to find any shots; if we fire it as a row trigger on final_shots it would try to label every point in sequence as it is imported; finally if we fire it as a statement trigger on final_shots we have no idea which sequence was imported.
This commit is contained in:
@@ -480,6 +480,8 @@ class Datastore:
|
||||
if filedata is not None:
|
||||
self.save_file_data(filepath, json.dumps(filedata), cursor)
|
||||
|
||||
cursor.execute("CALL final_line_post_import(%s);", (fileinfo["sequence"],))
|
||||
|
||||
self.maybe_commit()
|
||||
|
||||
def save_raw_smsrc (self, records, fileinfo, filepath, filedata = None):
|
||||
|
||||
Reference in New Issue
Block a user