diff --git a/unwind/db.py b/unwind/db.py index e322238..0c96618 100644 --- a/unwind/db.py +++ b/unwind/db.py @@ -136,6 +136,12 @@ async def set_import_progress(progress: float) -> Progress: progress = min(max(0.0, progress), 100.0) # clamp to 0 <= progress <= 100 current = await get_import_progress() + is_stopped = current and current.stopped is not None + + if progress == 100.0 and is_stopped: + assert current + return current + is_update = current and current.stopped is None if not current or not is_update: