Skip to content
Snippets Groups Projects
Commit 4d421157 authored by Clemens Berteld's avatar Clemens Berteld
Browse files

Added filter for interpolation data

parent c05b7ec3
No related branches found
No related tags found
No related merge requests found
import json
import psycopg2
from flask import Flask, jsonify, request
from psycopg2 import sql
......@@ -35,6 +33,10 @@ def index():
columns = sql.SQL(years_clean)
# Filter for getting only real measurent data without any interpolated points
if 'no-interpol' in request.args:
wheres = wheres + (sql.SQL("AND file IS NOT NULL "))
# Filter for specific coordinates
if 'lat' in request.args or 'lng' in request.args:
lat = request.args['lat']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment