Skip to content

Commit

Permalink
Update project.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DataGreed committed Apr 5, 2022
1 parent 837ad92 commit 6d96b3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions polytrackermidi/parsers/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ def parse(self) -> Project:
# 255 patterns, how pattern 100 file will be named if
# there is only 1 leading zero in one digit projects?

# answer: it looks like that: pattern_255.mtp

pattern_number_string = str(i)
if len(pattern_number_string) < 2:
pattern_number_string = "0" + pattern_number_string
Expand Down

0 comments on commit 6d96b3f

Please sign in to comment.