Skip to content

Commit

Permalink
Refactor profile name handling in build_profile.py
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-ma committed Dec 2, 2023
1 parent c06ada2 commit bc21db6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/build_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,8 @@ def main():
profile_names: list[str] = json.load(f)

for name in profile_names:
name = name.replace(" ", "_").lower()
profile = Profile(DIRECTORY / name)
profile.write_code_profile()
profile = Profile(DIRECTORY / name.replace(" ", "_").lower())
profile.write_code_profile(name)


if __name__ == "__main__":
Expand Down

0 comments on commit bc21db6

Please sign in to comment.