Skip to content
  1. Oct 17, 2023
    • jlouvel's avatar
      [amundi] Set STATE_DURATION to 10 · aa688373
      jlouvel authored and Damien Mat Jedrzejewski's avatar Damien Mat Jedrzejewski committed
      Module keeps an authorization header even when it's not valid anymore.
      Since storage lifespan is pretty short on the website (10 minutes and
      can't be refreshed), setting STATE_DURATION in the browser to match
      website behavior and do a new login if needed.
      aa688373
    • jlouvel's avatar
      [amundi] Add token_header to the states · 21e14251
      jlouvel authored and Damien Mat Jedrzejewski's avatar Damien Mat Jedrzejewski committed
      Recently, parent module amundi was updated to handle 2FA. Locate browser
      is silently crashing with a 401 most of the time, making the module
      login again from scratch. This is because token_header is not in the
      state while some URLs need it or the response will be a 401. Adding it
      to the state to keep the value between synchronizations. caels child
      module is crashing in a non-silent way because the 401 is happening in
      iter_accounts (locate_browser loads another URL and everything is fine,
      so the 401 is not happening in it and is not catched). Anyway, wether
      this is in locate_browser for amundi or iter_accounts in caels, the root
      of the issue is the same, we have to provide token_header when needed.
      21e14251
    • sfartit's avatar
      [amundi] Handle SCA · 4bad1270
      sfartit authored and Damien Mat Jedrzejewski's avatar Damien Mat Jedrzejewski committed
      Amundi implemented optionnal mfa.
      4bad1270
    • Nelson Amorim Branco's avatar
      [amundi] Move labanquepostale's URL to handled ones · dc221b69
      Nelson Amorim Branco authored and Damien Mat Jedrzejewski's avatar Damien Mat Jedrzejewski committed
      Previously, the URL was ignored, it's no more the case.
      The investments_details are handled in child module though.
      dc221b69
  2. Jun 21, 2023
  3. Jun 09, 2023
  4. Jun 04, 2023
  5. Jun 01, 2023
  6. May 23, 2023
  7. Apr 08, 2023
  8. Apr 04, 2023
  9. Mar 28, 2023
  10. Mar 13, 2023
  11. Mar 05, 2023
  12. Feb 17, 2023
  13. Feb 12, 2023
  14. Feb 10, 2023
  15. Feb 04, 2023
  16. Feb 03, 2023
  17. Feb 01, 2023
  18. Jan 29, 2023
  19. Dec 13, 2022
    • Tom LARGE's avatar
      [amundi] Fix Account has not attribute _sub_accounts · 0dcc4579
      Tom LARGE authored and Alexandre BONIN's avatar Alexandre BONIN committed
      _sub_accounts attribute wasn't set properly, which caused
      an attribute error on iter_history, investment and pockets.
      It is now set into pages.py.
      0dcc4579
    • Tom LARGE's avatar
      [amundi] Fix investment unit value · be1264b5
      Tom LARGE authored and Alexandre BONIN's avatar Alexandre BONIN committed
      Unit value was doubled by mistake.
      be1264b5
    • Tom LARGE's avatar
      [amundi] Fix account label · ec49d2cd
      Tom LARGE authored and Alexandre BONIN's avatar Alexandre BONIN committed
      This fixes an issue regarding ART.83 accounts,
      they does not always has a libelleContrat.
      Which caused an ItemNotFound error.
      ec49d2cd
    • Tom LARGE's avatar
      [amundi] Fix master account id · 17c90bd0
      Tom LARGE authored and Alexandre BONIN's avatar Alexandre BONIN committed
      As we previously weren't returning the right
      accounts and ids and that end users were deactivating
      accounts with a balance equal to 0, previous commits
      caused an issue regarding matching of activated accounts.
      
      To solve that we simply set the master_account id to the id of the
      first positive balance sub account.
      17c90bd0
    • Tom LARGE's avatar
      [amundi] Fix account object has not sub_accounts · 2075fc03
      Tom LARGE authored and Alexandre BONIN's avatar Alexandre BONIN committed
      Previous commits
      do not handle _sub_accounts properly in merge_accounts
      function due to a wrong loop organization and naming.
      
      Fix regression:
      
      ̀`AttributeError Account has not attribute _sub_accounts`.
      
      This was caused by a for loop that had the same name as
      a variable.
      
      To solve that we now fetch the master_account before
      merge loops.
      
      It avoids nested loops and allows us to return all
      accounts in case there is no master (we are not sure if
      it is possible).
      2075fc03
    • Tom LARGE's avatar
      [amundi] Fix fake and splitted accounts · d6735e0d
      Tom LARGE authored and Alexandre BONIN's avatar Alexandre BONIN committed
      This fix aims to reproduce how Amundi processes
      accounts datas.
      
      eg: a user sees on his dashboard 2 accounts,
      but the site returns us 16 accounts.
      And all of them are linked to a "real" account,
      actually an account that the user sees.
      
      So we link them thanks to the "merge_accounts" function.
      
      We remove the "fakes" ones and ad their balances to reproduce
      what the site does, and so what the user sees.
      
      We repeat this behavior for investements too.
      d6735e0d
    • Tom LARGE's avatar
      [amundi] Lint module · 25156923
      Tom LARGE authored and Alexandre BONIN's avatar Alexandre BONIN committed
      25156923