Permalink
Browse files

Only searching for records where current_flag=True

  • Loading branch information...
1 parent c23948f commit f190af266a640b86379e84021c50857a20e00ee5 @evz evz committed Mar 7, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 app.py
View
1 app.py
@@ -218,6 +218,7 @@ def dataset():
base_query = session.query(time_agg,
func.count(master_table.c['obs_date']),
master_table.c['dataset_name'])
+ base_query = base_query.filter(master_table.c['current_flag'] == True)
for clause in query_clauses:
base_query = base_query.filter(clause)
base_query = base_query.group_by(master_table.c['dataset_name'])\

0 comments on commit f190af2

Please sign in to comment.