DD063520 added a comment.
Ok, I think I found a patch. We can changes this https://github.com/wikimedia/pywikibot/blob/2dfe67426c22c3c11cf9be0eabcf538f8848bd48/pywikibot/__init__.py#L847: def toWikibase(self): """ Convert the data to a JSON object for the Wikibase API. @return: Wikibase JSON @rtype: dict """ json = {'amount': self._fromdecimal(self.amount), 'upperBound': self._fromdecimal(self.upperBound), 'lowerBound': self._fromdecimal(self.lowerBound), 'unit': self.unit } return json to: def toWikibase(self): """ Convert the data to a JSON object for the Wikibase API. @return: Wikibase JSON @rtype: dict """ json = {'amount': '{:f}'.format(Decimal(self._fromdecimal(self.amount))), 'upperBound': {:f}'.format(Decimal(self._fromdecimal(self.upperBound)), 'lowerBound': {:f}'.format(Decimal(self._fromdecimal(self.lowerBound)), 'unit': self.unit } return json Should I submit this? Or do you see any problems? Salut D063520 TASK DETAIL https://phabricator.wikimedia.org/T119226 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: DD063520 Cc: Liuxinyu970226, DD063520, thiemowmde, Tobias1984, Aklapper, StudiesWorld, pywikibot-bugs-list, ArthurPSmith, Zkhalido, darthmon_wmde, Viztor, Nandana, Wenyi, Lahi, Gq86, GoranSMilovanovic, QZanden, Tbscho, MayS, LawExplorer, Mdupont, JJMC89, Dvorapa, _jensen, rosalieper, Altostratus, Avicennasis, Scott_WUaS, mys_721tx, Wikidata-bugs, aude, jayvdb, Ricordisamoa, Masti, Alchimista, Mbch331, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
