Skip to content

Commit

Permalink
Rename variable to be more representative
Browse files Browse the repository at this point in the history
  • Loading branch information
CasperWA committed Mar 8, 2021
1 parent 02b6025 commit 9fde7a9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions optimade/server/routers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,9 @@ def get_entries(
query["page_offset"] = int(query.get("page_offset", [0])[0]) + len(results)
urlencoded = urllib.parse.urlencode(query, doseq=True)
root_path = CONFIG.root_path.rstrip("/") if CONFIG.root_path else ""
base_url = (
f"{get_base_url(request.url)}{request.url.path.replace(root_path, '')}"
)
url = f"{get_base_url(request.url)}{request.url.path.replace(root_path, '')}"

links = ToplevelLinks(next=f"{base_url}?{urlencoded}")
links = ToplevelLinks(next=f"{url}?{urlencoded}")
else:
links = ToplevelLinks(next=None)

Expand Down

0 comments on commit 9fde7a9

Please sign in to comment.