From 70acf2e4172223701c5f95a4e57fe20432171e85 Mon Sep 17 00:00:00 2001 From: "St.Huang" Date: Sat, 7 Jul 2018 14:05:44 +0800 Subject: [PATCH] fix #7 --- src/fastwq/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fastwq/query.py b/src/fastwq/query.py index dd60e74..a668d30 100644 --- a/src/fastwq/query.py +++ b/src/fastwq/query.py @@ -236,7 +236,7 @@ def update_note_fields(note, results): """ if not results or not note or len(results) == 0: - return + return 0 count = 0 for i, q in results.items(): if isinstance(q, QueryResult) and i < len(note.fields):