Skip to content
  1. Feb 24, 2019
  2. Feb 23, 2019
  3. Jan 13, 2019
  4. Jan 06, 2019
  5. Jan 05, 2019
  6. Jan 02, 2019
  7. Dec 30, 2018
  8. Dec 29, 2018
  9. Dec 21, 2018
    • Laurent Bachelier's avatar
      json: Force Decimal as str with simplejson · 81b12994
      Laurent Bachelier authored and Romain Bignon's avatar Romain Bignon committed
      simplejson has an internal way of formatting Decimal so it bypasses our
      formatter.
      Since weboob often deals with money, floats are not a good idea.
      
      Previousl:
      Decimal('1.1') => 1.1 with simplejson+WeboobEncoder
      Decimal('1.1') => '1.1' with json+WeboobEncoder
      Now both give '1.1'.
      
      Under simplejson:
      Using dump(cls=...) always initialize the Encoder class with the
      use_decimal=True argument (unless the argument is provided in the dump
      function, but that requires a lot of alteration in Weboob, and I would
      rather remove simplejson support altogether). So when present, we force it.
      
      Under json:
      There is no use_decimal, so we already go to the default() method of the
      Encoder.
      81b12994
    • Laurent Bachelier's avatar
      obj_to_filename: Better handling of unfilled values · 48cb8122
      Laurent Bachelier authored and Romain Bignon's avatar Romain Bignon committed
      48cb8122
  10. Dec 17, 2018
  11. Dec 02, 2018
  12. Nov 20, 2018
  13. Nov 10, 2018
  14. Oct 11, 2018
  15. Sep 16, 2018
  16. Aug 13, 2018
  17. Jul 30, 2018