Skip to content
  1. Jun 17, 2019
  2. May 19, 2019
  3. Apr 20, 2019
  4. Apr 06, 2019
  5. Mar 28, 2019
  6. Feb 24, 2019
  7. 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
  8. Jan 23, 2019
  9. Jan 05, 2019
  10. Dec 17, 2018
  11. Nov 10, 2018
  12. Oct 11, 2018
  13. Oct 09, 2018
  14. Sep 16, 2018
  15. Jul 29, 2018
  16. Jun 19, 2018
  17. Jun 16, 2018
  18. 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
  19. May 28, 2018
  20. May 05, 2018