소스 검색

trying to fix an odd bug

tags/v0.1.2^2
Ben Kurtovic 13 년 전
부모
커밋
5dd5dbe838
1개의 변경된 파일4개의 추가작업 그리고 7개의 파일을 삭제
  1. +4
    -7
      musicquizzer.py

+ 4
- 7
musicquizzer.py 파일 보기

@@ -211,13 +211,10 @@ class AnswerSheet(object):
before = time.time()
self.play_piece(piece)
after = time.time()
retries = 1
while after - before < 3 or retries >= 100: # if the piece
before = time.time() # played for less than 3 seconds,
self.play_piece(piece) # assume something went wrong
after = time.time() # loading and try to replay it,
retries += 1 # but don't get stuck in a loop if
# we legitimately can't play it
while after - before < 3: # if the piece played for less than
before = time.time() # 3 seconds, assume something went
self.play_piece(piece) # wrong loading and try to replay it
after = time.time()
self.playing.set("That was Excerpt {0}...".format(cur_excerpt))
cur_excerpt = chr(ord(cur_excerpt) + 1)
time.sleep(break_length)


불러오는 중...
취소
저장