Sfoglia il codice sorgente

time_since_update when no updates have occured should not be zero!

pull/24/head
Ben Kurtovic 12 anni fa
parent
commit
314663a5e2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      pages/copyvios.mako

+ 1
- 1
pages/copyvios.mako Vedi 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)


Caricamento…
Annulla
Salva