From c05b744feebd42fcbd15dfe7184851159f9ac2c6 Mon Sep 17 00:00:00 2001 From: Christian Quest Date: Mon, 9 May 2016 18:10:27 +0200 Subject: [PATCH] limit to 200 events in search results --- backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend.py b/backend.py index 7741e04..12a1a60 100644 --- a/backend.py +++ b/backend.py @@ -126,7 +126,7 @@ SELECT '{"type":"Feature", "properties": '|| (events_tags::jsonb || jsonb_build_ JOIN geo ON (hash=events_geo) """ + event_bbox +""" WHERE events_when && """+ event_when + event_what + event_type +""" ORDER BY createdate DESC - LIMIT 50; + LIMIT 200; """) resp.body = """{"type":"FeatureCollection", "features": [ """+""",