Sfoglia il codice sorgente

Auto-bypass cache when cache_possible_miss is True.

pull/24/head
Ben Kurtovic 9 anni fa
parent
commit
0f4ecfe80a
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. +2
    -0
      copyvios/checker.py

+ 2
- 0
copyvios/checker.py Vedi File

@@ -139,6 +139,8 @@ def _get_cached_results(page, conn, mode, noskip):
if not results:
return None
cache_time, queries, check_time, possible_miss = results[0]
if possible_miss and noskip:
return None
cursor.execute(query3, (cache_id,))
data = cursor.fetchall()



Caricamento…
Annulla
Salva