Skip to content

Commit c71c12e

Browse files
committed
Make round end on the half hour
1 parent 7c40ee6 commit c71c12e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/button.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,5 +249,6 @@ def resetRound():
249249
app = make_app()
250250
app.listen(8888)
251251
tornado.ioloop.IOLoop.current().add_timeout(time.time() + 1, checkButton)
252-
tornado.ioloop.IOLoop.current().add_timeout(time.time() + time_in_round, resetRound)
252+
mins_to_half_hr = time.localtime().tm_min
253+
tornado.ioloop.IOLoop.current().add_timeout(time.time() + time_in_round - mins_to_half_hr, resetRound)
253254
tornado.ioloop.IOLoop.current().start()

0 commit comments

Comments
 (0)