Skip to content

Commit 1f7743c

Browse files
committed
Attempt at multiple project names per language (more to do)
temp rename of animation_base pygame - I wanted tk to be the python method surfaced
1 parent f46719c commit 1f7743c

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

teachprogramming/lib/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def on_get(self, request, response, project_name: str):
7676
def project_files(self, project_name: str) -> Iterable[Path]:
7777
def _filter_file(f):
7878
relative_path = f.relative_to(self.file_collection.path)
79-
return project_name == str(relative_path.parent.joinpath(relative_path.name.removesuffix(''.join(f.suffixes))))
79+
return str(relative_path.parent.joinpath(relative_path.name.removesuffix(''.join(f.suffixes)))).startswith(project_name)
8080
return tuple(filter(_filter_file, self.file_collection.files))
8181

8282

teachprogramming/static/projects/game/animation_base_pygame.py renamed to teachprogramming/static/projects/game/animation_base.pygame.py

File renamed without changes.

0 commit comments

Comments
 (0)