Add some query links.
This commit is contained in:
@ -102,6 +102,8 @@ def select_stations(conn, n):
|
||||
@api_app.route('/')
|
||||
def index():
|
||||
|
||||
path = config['Settings']['base_url']
|
||||
|
||||
# Get list of recent packets using API
|
||||
# TODO use relative path
|
||||
#frames = json.loads(requests.get(url_for("packets", _external=True)).text)['data']
|
||||
@ -150,7 +152,8 @@ def index():
|
||||
station_lon = config['Settings']['station_lon'],
|
||||
frames = frames,
|
||||
stations = stations,
|
||||
geojs = geojs)
|
||||
geojs = geojs,
|
||||
path = path)
|
||||
|
||||
@api_app.route('/map')
|
||||
def map():
|
||||
@ -209,7 +212,7 @@ class Packets(Resource):
|
||||
try:
|
||||
n = int(request.args.get('n'))
|
||||
except:
|
||||
n = 10
|
||||
n = 20
|
||||
|
||||
conn = get_db_connection()
|
||||
# Limit to number of records requested
|
||||
@ -224,7 +227,7 @@ class Stations(Resource):
|
||||
try:
|
||||
n = int(request.args.get('n'))
|
||||
except:
|
||||
n = 10
|
||||
n = 20
|
||||
|
||||
conn = get_db_connection()
|
||||
# Limit to number of records requested
|
||||
|
Reference in New Issue
Block a user