fix sort of transactions

It now sorts transactions on each page instead of doing it globally
This commit is contained in:
Romain Bignon 2014-07-01 20:38:09 +02:00
commit d1a1938780
2 changed files with 14 additions and 5 deletions

View file

@ -62,5 +62,4 @@ class OneyBrowser(LoginBrowser):
post = {'task': 'Synthese', 'process': 'SyntheseCompte', 'taskid':'Releve'}
self.operations.go(data=post)
return sorted(self.page.iter_transactions(), key=lambda tr: tr.rdate, reverse=True)
return self.page.iter_transactions(seen=set())