return HttpServerError(request, "Invalid client address")
# We have the data in request.body. Attempt to load it as
# json to ensure correct format.
- json.loads(request.body)
+ json.loads(request.body.decode('utf8'))
# Next, check if it's the same as the current file
if os.path.isfile(settings.YUM_JSON):
if pinfo['p'] == familypath and pinfo['f'] == shortdist:
if p not in reporpms[v]:
reporpms[v][p] = {}
- reporpms[v][p][arch] = max(ver, reporpms[v][p].get(arch, 0))
+ reporpms[v][p][arch] = max(int(ver), int(reporpms[v][p].get(arch, 0)))
platforms[p]['found'] = True
break
else: