Skip to content

Commit

Permalink
fix: bar length
Browse files Browse the repository at this point in the history
  • Loading branch information
stepanLav committed Sep 2, 2024
1 parent 72f4837 commit 8417f9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/python_scripts/table_representation.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def fill_status_bar(self, instance: DeploymentInstance, project: SubQueryProject
return f'{progress_bar} {percent}%', commit

def generate_progress_bar(self, percent: int) -> str:
bar_length = 20
bar_length = 5
filled_length = int(bar_length * percent // 100)
bar = '█' * filled_length + '-' * (bar_length - filled_length)
return f'[{bar}]'
Expand Down

0 comments on commit 8417f9c

Please sign in to comment.