diff --git a/pgweb/downloads/views.py b/pgweb/downloads/views.py index c95f7810..05512876 100644 --- a/pgweb/downloads/views.py +++ b/pgweb/downloads/views.py @@ -163,7 +163,7 @@ def uploadyum(request): 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): diff --git a/tools/ftp/spider_yum.py b/tools/ftp/spider_yum.py index e9697428..502eb4b1 100755 --- a/tools/ftp/spider_yum.py +++ b/tools/ftp/spider_yum.py @@ -80,7 +80,7 @@ if __name__ == "__main__": 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: