The new woob repository is here: https://gitlab.com/woob/woob. This gitlab will be removed soon.

Commit 5e04a697 authored by Vincent A's avatar Vincent A

[caissedepargne] navigate to the proper document year before download

We must be on the page where the document is listed to be able to
download it, so let's select the right year. Else we download an
unrelated HTML page.
parent a358abf1
......@@ -1956,6 +1956,8 @@ def download_document(self, document):
self.home_tache.go(tache='EPASYNT0')
self.page.go_subscription()
assert self.subscription.is_here()
self.page.change_year(document.date.year)
assert self.subscription.is_here()
return self.page.download_document(document).content
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment