Skip to content

Commit

Permalink
Merge branch 'master' of git@github.com:malaria-atlas-project/anopheles
Browse files Browse the repository at this point in the history
  • Loading branch information
apatil committed Jun 11, 2009
2 parents e23e84a + cd41344 commit 9b593e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anopheles/example.py
Expand Up @@ -13,7 +13,7 @@
any_anopheline = exists().where(SamplePeriod.site_id==Site.site_id)

#SQL issued to db here - session queries are lazy.
sites = session.query(Site.geom, species_specific_subquery.c.sample_period_count).outerjoin((species_specific_subquery, Site.site_id==species_specific_subquery.c.site_id)).filter(any_anopheline)
sites = session.query(Site.geom, func.st_numgeometries(Site.geom), species_specific_subquery.c.sample_period_count).outerjoin((species_specific_subquery, Site.site_id==species_specific_subquery.c.site_id)).filter(any_anopheline)
mozzie_site_list = sites.all()


Expand Down

0 comments on commit 9b593e5

Please sign in to comment.