From 28d4b1e36b9adfcedd1ad3cb12a2aa943f7027f6 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Sat, 23 Sep 2017 20:21:35 +0200 Subject: [PATCH] Add missing brackets for method invokation --- flatisfy/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flatisfy/data.py b/flatisfy/data.py index 9786248..5510aba 100644 --- a/flatisfy/data.py +++ b/flatisfy/data.py @@ -48,7 +48,7 @@ def preprocess_data(config, force=False): with get_session() as session: is_built = ( session.query(PublicTransport).count() > 0 and - session.query(PostalCode).count > 0 + session.query(PostalCode).count() > 0 ) if is_built and not force: # No need to rebuild the database, skip