Skip to content

Commit

Permalink
rename 'row_counter' parameter to 'row_index'
Browse files Browse the repository at this point in the history
  • Loading branch information
elbenfreund committed Sep 22, 2017
1 parent 9db4f36 commit b98097c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hamster_gtk/tracking/screens.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def refresh(self, sender=None):

def _populate(self):
"""Fill the widget with rows per activity."""
def add_row_widgets(row_counter, activity):
def add_row_widgets(row_index, activity):
"""
Add a set of widgets to a specific row based on the activity passed.
Expand Down Expand Up @@ -353,10 +353,10 @@ def get_start_button(activity):
start = today - datetime.timedelta(90)
activities = reversed(helpers.get_recent_activities(self._controller, start, today))

row_counter = 0
row_index = 0
for activity in activities:
add_row_widgets(row_counter, activity)
row_counter += 1
add_row_widgets(row_index, activity)
row_index += 1

def _on_copy_button(self, button, activity):
"""
Expand Down

0 comments on commit b98097c

Please sign in to comment.