Skip to content

Commit c625572

Browse files
mixed up lazy iteration
1 parent 6757c2e commit c625572

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/web_startup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ async def switch_version():
7070
foo = json.load(
7171
get("https://api.github.com/repos/dragoncoder047/schemascii/contents/dist"))
7272
foo = filter(lambda x: x["name"].endswith(".whl"), foo)
73-
foo = map(lambda x: x["path"], foo)
73+
foo = list(map(lambda x: x["path"], foo))
7474
versions_to_wheel_map = dict(
7575
zip(map(lambda x: re.search(r"""/schemascii-([\d.]+)-""", x).group(1), foo), foo))
7676
all_versions = list(versions_to_wheel_map.keys())

0 commit comments

Comments
 (0)