Commit ee873b1d authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil Team

controllers/patient.py: patient/stats, timing

parent 86cfc771
......@@ -164,6 +164,9 @@ def custom():
STATS_READLINES = 1000 # approx. size in which the stats are searched
def stats():
import time
start = time.time()
d = custom()
stats_regex = [
......@@ -212,6 +215,7 @@ def stats():
row[key] = val.replace('\\', '')
break
log.debug("patient/stats (%.3fs)" % (time.time()-start))
return d
## return patient list
......
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