Skip to content
  1. Feb 24, 2019
  2. Feb 05, 2019
    • ntome's avatar
      weboob.capabilities.bank: rename diff_percent and keep a compat alias · 2c3d462d
      ntome authored and Romain Bignon's avatar Romain Bignon committed
      diff_percent was a misleading name because the ratio was expressed on 1,
      not on 100, thus it wasn't a percentage.
      
      For reference to suckers: a percentage is a ratio multiplied by 100.
      We create a temporary alias so apps using the old field have compatibility.
      "diff_percent" will soon be removed.
      2c3d462d
  3. Jan 23, 2019
  4. Jan 05, 2019
  5. Dec 17, 2018
  6. Nov 10, 2018
  7. Oct 11, 2018
  8. Oct 09, 2018
  9. Sep 16, 2018
  10. Jul 29, 2018
  11. Jun 19, 2018
  12. Jun 16, 2018
  13. Jun 09, 2018
    • Quentin Defenouillere's avatar
      [capabilities.base] Inverted iteration loops for get_currency · 292c72c3
      Quentin Defenouillere authored and Romain Bignon's avatar Romain Bignon committed
      Since the currencies dictionary is ordered, it is preferable to first
      iter over this dictionary and then iter over the curtexts in order to
      prevent mismatches.
      For example, the get_currency method selected the 'PEN' currency in several
      cases: if the text contains 'en EUR', the curtexts list will be
      ['en', 'EUR'] and if we iterate over curtexts first, 'en' will be
      matched with 'PEN' because of the "if curtext in currency" line without
      ever trying to match 'EUR' with 'EUR'.
      
      Therefore, curtexts are now strictly matched with currencies since
      most websites use the ISO-4217 norm anyways and because it is better to
      return None than to match wrong currencies such as peruvian sols.
      Example: if the text contains 'CHAUDE', it will match it with 'AUD'
      (australian dollars) with is wrong, whereas "if curtext == currency" is
      stricter but avoids false matches.
      
      Closes: 5548@zendesk
      292c72c3
  14. May 28, 2018
  15. May 05, 2018
  16. Apr 26, 2018
  17. Apr 15, 2018
  18. Apr 06, 2018
  19. Mar 31, 2018