Commit 86cfc771 authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil Team
Browse files

controllers/ patient/stats, looks only at the first kB

Digging into all *.vidjil files may take some time.
parent 80b88fad
......@@ -161,6 +161,7 @@ def custom():
STATS_READLINES = 1000 # approx. size in which the stats are searched
def stats():
d = custom()
......@@ -196,7 +197,7 @@ def stats():
for row in d['query']:
results_f = defs.DIR_RESULTS + row.results_file.data_file
results = open(results_f).readlines()
results = open(results_f).readlines(STATS_READLINES)
except IOError:
results = []
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment