From 06af9b30ac5101d16bc699dde714c49881f09978 Mon Sep 17 00:00:00 2001 From: Nose Date: Wed, 21 Jan 2026 15:49:47 -0800 Subject: [PATCH] h --- Store/Folder.py | 4 ++-- cmdlet/add_tag.py | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) 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