We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6050ef0 commit 6bb2f24Copy full SHA for 6bb2f24
infrastructure/src/collector.py
@@ -11,7 +11,9 @@
11
12
class SolutionsCollector:
13
@staticmethod
14
- def collect_solutions() -> Generator:
+ def collect_solutions() -> set:
15
+ solutions = set()
16
+
17
for language, props in LANGUAGES.items():
18
directory = props['directory']
19
extension = props['extension']
@@ -23,10 +25,12 @@ def collect_solutions() -> Generator:
23
25
if file.startswith(IGNORE):
24
26
continue
27
if file.endswith(extension):
- yield file.removesuffix(extension)
28
+ solutions.add(file.removesuffix(extension))
29
else:
30
logger.warning(f'File with unknown extension for {language}: {file}')
31
32
+ return solutions
33
34
@classmethod
35
def collect_problems(cls, titles: Iterable) -> Generator:
36
for title in titles:
0 commit comments