diff --git a/Store/Folder.py b/Store/Folder.py index f75080c..a0678f0 100644 --- a/Store/Folder.py +++ b/Store/Folder.py @@ -1653,12 +1653,12 @@ class Folder(Store): if t: cursor.execute( "INSERT OR IGNORE INTO tag (hash, tag) VALUES (?, ?)", - (hash, + (file_identifier, t), ) db.connection.commit() try: - db._update_metadata_modified_time(hash) + db._update_metadata_modified_time(file_identifier) except Exception: pass return True diff --git a/cmdlet/add_tag.py b/cmdlet/add_tag.py index dc82d96..aae33f0 100644 --- a/cmdlet/add_tag.py +++ b/cmdlet/add_tag.py @@ -1018,6 +1018,28 @@ class Add_Tag(Cmdlet): ) if is_last_stage and display_items: + try: + live_progress = ctx.get_live_progress() + except Exception: + live_progress = None + + if live_progress is not None: + try: + pipe_idx = getattr(stage_ctx, "pipe_index", None) + if isinstance(pipe_idx, int): + live_progress.finish_pipe(int(pipe_idx), force_complete=True) + except Exception: + pass + try: + live_progress.stop() + except Exception: + pass + try: + if hasattr(ctx, "set_live_progress"): + ctx.set_live_progress(None) + except Exception: + pass + try: from SYS.rich_display import render_item_details_panel from SYS.result_table import Table