Skip to content

Commit 9fde7a9

Browse files
committed
Rename variable to be more representative
1 parent 02b6025 commit 9fde7a9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

optimade/server/routers/utils.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,9 @@ def get_entries(
215215
query["page_offset"] = int(query.get("page_offset", [0])[0]) + len(results)
216216
urlencoded = urllib.parse.urlencode(query, doseq=True)
217217
root_path = CONFIG.root_path.rstrip("/") if CONFIG.root_path else ""
218-
base_url = (
219-
f"{get_base_url(request.url)}{request.url.path.replace(root_path, '')}"
220-
)
218+
url = f"{get_base_url(request.url)}{request.url.path.replace(root_path, '')}"
221219

222-
links = ToplevelLinks(next=f"{base_url}?{urlencoded}")
220+
links = ToplevelLinks(next=f"{url}?{urlencoded}")
223221
else:
224222
links = ToplevelLinks(next=None)
225223

0 commit comments

Comments
 (0)