Skip to content

Commit

Permalink
Fixed iteration variable
Browse files Browse the repository at this point in the history
  • Loading branch information
MujyKun committed Nov 13, 2021
1 parent 3869701 commit 83a6b19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IreneUtility/util/u_reminder.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async def process_relative_time_input(self, time_input):
float(time_element)
except:
# purposefully creating an error to locate which elements are words vs integers.
for time_in_seconds, time_unit_name in self.ex.cache.time_units:
for time_unit_name, time_in_seconds in self.ex.cache.time_units:
if time_element in time_unit_name:
remind_time += time_in_seconds * float(input_elements[input_elements.index(time_element) - 1])
return int(remind_time)
Expand Down

0 comments on commit 83a6b19

Please sign in to comment.