bugfix
This commit is contained in:
parent
0531c8997b
commit
1f21a71c74
@ -548,8 +548,10 @@ class Reporter:
|
||||
if self.__to_update:
|
||||
for unreported_data in self.__to_update:
|
||||
unreported_data.update(player_id=self.citizen_id, key=self.key)
|
||||
unreported_data = utils.json.load(utils.json.dumps(unreported_data, cls=MyJSONEncoder, sort_keys=True))
|
||||
self._req.post("{}/bot/update".format(self.url), json=unreported_data)
|
||||
self.__to_update.clear()
|
||||
data = utils.json.load(utils.json.dumps(data, cls=MyJSONEncoder, sort_keys=True))
|
||||
r = self._req.post("{}/bot/update".format(self.url), json=data)
|
||||
return r
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user