Skip to content

Commit

Permalink
Use timesheet lookup method in okay message
Browse files Browse the repository at this point in the history
  • Loading branch information
redbug312 committed Jun 29, 2020
1 parent 48cd84b commit 8a68905
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/python/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def scanCard(self):
.scrollTo(focus, QAbstractItemView.PositionAtCenter)
self.context.sound.play()
self.updateProgressBar(0x01)
panel.setOkayMsg(matches, deadline)
panel.setOkayMsg(iloc_bar, scan)

@slot(int)
def updateSpreadSheet(self, flags=0b1111):
Expand Down Expand Up @@ -213,9 +213,10 @@ def truncate(string, length):
html = pypugjs.simple_convert(pug)
self.uiInfoLbl.setText(html)

def setOkayMsg(self, matches, deadline):
columnhead = self.context.timesheet.columnhead()
match = matches.iloc[0]
def setOkayMsg(self, iloc, scan):
timesheet = self.context.timesheet
columnhead = timesheet.columnhead()
match = timesheet.lookup(iloc, scan).iloc[0]
informs = zip(columnhead.reindex(range(3)), match.reindex(range(3)))
pug = inspect.cleandoc(f"""
div(align='center' style='font-size:36pt; color:#2E3436;')
Expand Down

0 comments on commit 8a68905

Please sign in to comment.