Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
magnuselden authored and magnuselden committed Aug 27, 2024
1 parent 330164a commit 27f4544
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,11 @@ def latest_boost_call(self) -> str:
return "-"

def import_latest_boost_call(self, strtime):
struct_time = time.strptime(strtime, "%Y-%m-%d %H:%M")
new = time.mktime(struct_time)
try:
struct_time = time.strptime(strtime, "%Y-%m-%d %H:%M")
new = time.mktime(struct_time)
except ValueError as e:
new = 0
current = self.model.latest_boost_call
self.model.latest_boost_call = max(new, current)

Expand Down

0 comments on commit 27f4544

Please sign in to comment.