Skip to content

fix: redownload behavior in PySUS.download#286

Open
morsoletodev wants to merge 2 commits into
AlertaDengue:mainfrom
morsoletodev:fix-aio-redownload
Open

fix: redownload behavior in PySUS.download#286
morsoletodev wants to merge 2 commits into
AlertaDengue:mainfrom
morsoletodev:fix-aio-redownload

Conversation

@morsoletodev

@morsoletodev morsoletodev commented Jun 17, 2026

Copy link
Copy Markdown

This PR fixes #285 where PySUS.download leaves the file status as DOWNLOADING even after a successful download, preventing the caching mechanism from recognizing files as "already downloaded."

Changes

  • Updated client.py to set status=DownloadStatus.COMPLETED after a successful client.download call.

  • Added a regression test in test_client.py to verify the state transition.

@morsoletodev morsoletodev changed the title Fix #285 redownload behavior in PySUS.download Fix redownload behavior in PySUS.download Jun 17, 2026
@morsoletodev morsoletodev changed the title Fix redownload behavior in PySUS.download fix: redownload behavior in PySUS.download Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: PySUS.download sets status to DOWNLOADING instead of COMPLETED on successful download

1 participant