예제 #1
0
def habitat_groups():
    from art17.progress import HabitatProgressTable
    if flask.request.args.get('table_view'):
        data = HabitatProgressTable.get_groups(flask.request.args['period'])
    else:
        data = HabitatMixin.get_groups(flask.request.args['period'])
    return flask.jsonify(data)
예제 #2
0
def habitat_groups():
    from art17.progress import HabitatProgressTable
    if flask.request.args['table_view']:
        data = HabitatProgressTable.get_groups(flask.request.args['period'])
    else:
        data = HabitatMixin.get_groups(flask.request.args['period'])
    return flask.jsonify(data)
예제 #3
0
def species_assessors():
    data = HabitatMixin.get_assessors(
        request.args.get('period'), request.args.get('group'))
    return jsonify(data)
예제 #4
0
def habitat_regions():
    period, country = request.args['period'], request.args['country']
    data = HabitatMixin.get_regions_by_country(period, country)
    return jsonify(data)
예제 #5
0
def _regions_habitat():
    period, subject = request.args['period'], request.args['subject']
    data = HabitatMixin.get_regions(period, subject)
    return jsonify(data)
예제 #6
0
def _species_habitat():
    period, group = request.args['period'], request.args['group']
    data = HabitatMixin.get_subjects(period, group)
    return jsonify(data)
예제 #7
0
def habitat_regions():
    period, country = request.args['period'], request.args['country']
    data = HabitatMixin.get_regions_by_country(period, country)
    return jsonify(data)
예제 #8
0
def _regions_habitat():
    period, subject = request.args['period'], request.args['subject']
    data = HabitatMixin.get_regions(period, subject)
    return jsonify(data)
예제 #9
0
def _species_habitat():
    period, group = request.args['period'], request.args['group']
    data = HabitatMixin.get_subjects(period, group)
    return jsonify(data)
예제 #10
0
def species_assessors():
    data = HabitatMixin.get_assessors(
        request.args.get('period'), request.args.get('group'))
    return jsonify(data)