Jeopardy: add numHints variable to template.hint

This commit is contained in:
Gordon Shumway 2020-06-18 17:09:12 -04:00 committed by GitHub
parent 112e184152
commit 23443ee6bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -633,7 +633,7 @@ class Jeopardy(callbacks.Plugin):
len(str(self.timeout)) len(str(self.timeout))
) )
reply = self.hint_template.render( reply = self.hint_template.render(
hint=self.currentHint, time=timeLeft, points=points, hintNum = self.hints hint=self.currentHint, time=timeLeft, points=points, hintNum = self.hints, numHints = self.numHints
) )
if self.showHints or self.showTime: if self.showHints or self.showTime:
@ -645,7 +645,7 @@ class Jeopardy(callbacks.Plugin):
schedule.addEvent(event, eventTime, "event_%s" % self.channel) schedule.addEvent(event, eventTime, "event_%s" % self.channel)
else: else:
reply = self.hint_template.render( reply = self.hint_template.render(
hint=self.currentHint, time=None, points=points, hintNum = self.hints hint=self.currentHint, time=None, points=points, hintNum = self.hints, numHints = self.numHints
) )
self.reply(reply) self.reply(reply)
self.hints += 1 self.hints += 1