Skip to content

Commit

Permalink
Add archive_name filter to update timecode func (#508)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlashner authored Aug 17, 2023
1 parent 74cf681 commit 6ecdf31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion socs/db/suprsync.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,9 @@ def create_all_timecode_dirs(self, archive_name):

def update_all_timecode_dirs(self, archive_name, file_root, sync_id):
with self.Session.begin() as session:
tcdirs = session.query(TimecodeDir).all()
tcdirs = session.query(TimecodeDir).filter(
TimecodeDir.archive_name == archive_name,
).all()
for tcdir in tcdirs:
self._update_tcdir(tcdir, session, file_root, sync_id)

Expand Down

0 comments on commit 6ecdf31

Please sign in to comment.