Skip to content

Commit

Permalink
Usage of enumerate instead of manual index mgmt (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin-De-Koninck authored and vincentcox committed Feb 18, 2018
1 parent 5c6e41f commit c6274e4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/stacoan.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,8 @@ def program():
all_files.update(Project.projects[project_path].db_files)
all_files.update(Project.projects[project_path].src_files)
amount_files = len(all_files)
i = 0
for file in all_files:
for i, file in enumerate(all_files):
Logger("progress: "+str(format((i/amount_files)*100, '.2f'))+"%", rewriteLine=True)
i += 1
hash_object = hashlib.md5(file.encode('utf-8'))
file_report_file = os.path.join(report_folder, hash_object.hexdigest()+'.html')
overview_html = Report_html(Project.projects[project_path])
Expand Down

0 comments on commit c6274e4

Please sign in to comment.