Add missing brackets for method invokation

This commit is contained in:
Gautier Pelloux-Prayer 2017-09-23 20:21:35 +02:00 committed by Phyks (Lucas Verney)
parent 01e9f7ec0a
commit 28d4b1e36b

View File

@ -48,7 +48,7 @@ def preprocess_data(config, force=False):
with get_session() as session: with get_session() as session:
is_built = ( is_built = (
session.query(PublicTransport).count() > 0 and session.query(PublicTransport).count() > 0 and
session.query(PostalCode).count > 0 session.query(PostalCode).count() > 0
) )
if is_built and not force: if is_built and not force:
# No need to rebuild the database, skip # No need to rebuild the database, skip