- copy-paste mistake fixed
- it must be 'port'
if blockers == None and blocked == None:
raise HTTPException(status_code=400, detail="No filter specified")
elif blockers != None:
- scores = get(f"http://127.0.0.1:{fba.config['base_url']}{fba.config['base_url']}/top?blockers={blockers}")
+ scores = get(f"http://127.0.0.1:{fba.config['port']}{fba.config['base_url']}/top?blockers={blockers}")
elif blocked != None:
scores = get(f"http://127.0.0.1:{fba.config['port']}{fba.config['base_url']}/top?blocked={blocked}")
if scores != None:
if not scores.ok:
- raise HTTPException(status_code=blocks.status_code, detail=blocks.text)
+ raise HTTPException(status_code=scores.status_code, detail=scores.text)
scores = scores.json()