Revision 5212
Added by Aaron Marcuse-Kubitza about 12 years ago
tnrs_db | ||
---|---|---|
57 | 57 |
limit=tnrs.max_names, cacheable=False) |
58 | 58 |
this_ct = cur.rowcount |
59 | 59 |
if this_ct == 0: |
60 |
log('Waited '+str(total_pause)+' sec total') |
|
60 | 61 |
total_pause += pause |
61 | 62 |
if total_pause > max_pause: break |
62 |
log('Waited '+str(total_pause)+' sec. Waiting...')
|
|
63 |
log('Waiting '+str(pause)+' sec...')
|
|
63 | 64 |
time.sleep(pause) # wait for more rows |
64 | 65 |
continue # try again |
65 | 66 |
# otherwise, rows found |
Also available in: Unified diff
tnrs_db: Fixed the time of the "Waited" message so it that the total_pause (containing the next wait) would be incremented after the message was displayed. Split the "Waited" and "Waiting" messages into two separate messages.