Browse Source

time_since_update when no updates have occured should not be zero!

pull/24/head
Ben Kurtovic 12 years ago
parent
commit
314663a5e2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      pages/copyvios.mako

+ 1
- 1
pages/copyvios.mako View File

@@ -135,7 +135,7 @@
try:
time_since_update = int(time() - cursor.fetchall()[0][0])
except IndexError:
time_since_update = 0
time_since_update = time()
if time_since_update > max_staleness:
update_sites(bot.wiki.get_site(), cursor)
cursor.execute(query2)


Loading…
Cancel
Save