h
This commit is contained in:
@@ -1653,12 +1653,12 @@ class Folder(Store):
|
|||||||
if t:
|
if t:
|
||||||
cursor.execute(
|
cursor.execute(
|
||||||
"INSERT OR IGNORE INTO tag (hash, tag) VALUES (?, ?)",
|
"INSERT OR IGNORE INTO tag (hash, tag) VALUES (?, ?)",
|
||||||
(hash,
|
(file_identifier,
|
||||||
t),
|
t),
|
||||||
)
|
)
|
||||||
db.connection.commit()
|
db.connection.commit()
|
||||||
try:
|
try:
|
||||||
db._update_metadata_modified_time(hash)
|
db._update_metadata_modified_time(file_identifier)
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
return True
|
return True
|
||||||
|
|||||||
@@ -1018,6 +1018,28 @@ class Add_Tag(Cmdlet):
|
|||||||
)
|
)
|
||||||
|
|
||||||
if is_last_stage and display_items:
|
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:
|
try:
|
||||||
from SYS.rich_display import render_item_details_panel
|
from SYS.rich_display import render_item_details_panel
|
||||||
from SYS.result_table import Table
|
from SYS.result_table import Table
|
||||||
|
|||||||
Reference in New Issue
Block a user