fix: disable resume when stage is DONE, add mark_completed for skipped transfer

This commit is contained in:
2026-05-22 20:48:53 +04:00
parent 8ccac570ce
commit 45f56bc146
+3 -2
View File
@@ -109,8 +109,9 @@ def main():
banner() banner()
while True: while True:
st = state.load_state() st = state.load_state()
# Это resume — если есть mode, stage != INIT, или было прерывание # Resume показываем только если есть незавершённая работа (stage != INIT, != DONE)
has_resume = bool(st.get("mode") and st.get("stage") != "INIT") stage = st.get("stage", "INIT")
has_resume = bool(st.get("mode") and stage not in ("INIT", "DONE"))
menu(has_resume=has_resume) menu(has_resume=has_resume)
try: try:
choice = prompt("Ваш выбор", default="0").strip() choice = prompt("Ваш выбор", default="0").strip()