Ben Kurtovic 8 anni fa
parent
commit
62b2099163
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      tif/calc.py

+ 1
- 1
tif/calc.py Vedi File

@@ -70,7 +70,7 @@ def _get_avg_views(site, article):
def _update_views(cursor, site, title, ns): def _update_views(cursor, site, title, ns):
cache_life = "7 DAY" cache_life = "7 DAY"
query1 = """DELETE FROM cache query1 = """DELETE FROM cache
WHERE cache_time < DATE_SUB(NOW(), INTERVAL {1})"""
WHERE cache_time < DATE_SUB(NOW(), INTERVAL {0})"""
query2 = """SELECT tl_from, page_title query2 = """SELECT tl_from, page_title
FROM {0}.templatelinks FROM {0}.templatelinks
LEFT JOIN {0}.page ON tl_from = page_id LEFT JOIN {0}.page ON tl_from = page_id


Caricamento…
Annulla
Salva