mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-01 15:54:53 +00:00
Fix datatype and encoding for yum spider
This commit is contained in:
@ -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):
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user