diff --git a/.github/README.md b/.github/README.md index 89cfccb..daa6cd6 100644 --- a/.github/README.md +++ b/.github/README.md @@ -48,6 +48,8 @@ Puzzle inputs and descriptions are not included in this repository. You'll have ![Lines of code per day](https://github.com/codemicro/adventOfCode/blob/master/.github/clocgraph.png?raw=true) +*(Boilerplate code and code that generates visualisations is not included)* + [check]: https://github.com/codemicro/adventOfCode/blob/master/.github/check.png?raw=true [cross]: https://github.com/codemicro/adventOfCode/blob/master/.github/cross.png?raw=true [partial]: https://github.com/codemicro/adventOfCode/blob/master/.github/partial.png?raw=true diff --git a/.github/clocgen.py b/.github/clocgen.py index d259cbd..aab3e94 100644 --- a/.github/clocgen.py +++ b/.github/clocgen.py @@ -33,11 +33,12 @@ for file in cloc_results["files"]: continue split_name = file["name"].split(os.path.sep) - if split_name[-1].lower() not in ["__main__.py", "main.go"]: + if split_name[-1].lower() not in ["__main__.py", "main.go", "visualise.py", "visualise.go"]: try: day_num = int(split_name[0].split("-")[0]) except ValueError: continue + if day_num not in target_dict: target_dict[day_num] = file["code"] else: