Compare commits
No commits in common. "4448de1288a29cdba459da2a3dcba509e8f62fe4" and "7a991f697a45e158f6003fa0aea655d79fa69740" have entirely different histories.
4448de1288
...
7a991f697a
BIN
fgs/.model.py.swp
Normal file
BIN
fgs/.model.py.swp
Normal file
Binary file not shown.
BIN
fgs/.views.py.swo
Normal file
BIN
fgs/.views.py.swo
Normal file
Binary file not shown.
BIN
fgs/.views.py.swp
Normal file
BIN
fgs/.views.py.swp
Normal file
Binary file not shown.
BIN
fgs/__init__.pyc
Normal file
BIN
fgs/__init__.pyc
Normal file
Binary file not shown.
BIN
fgs/__pycache__/__init__.cpython-37.pyc
Normal file
BIN
fgs/__pycache__/__init__.cpython-37.pyc
Normal file
Binary file not shown.
BIN
fgs/__pycache__/jwt.cpython-37.pyc
Normal file
BIN
fgs/__pycache__/jwt.cpython-37.pyc
Normal file
Binary file not shown.
BIN
fgs/__pycache__/model.cpython-37.pyc
Normal file
BIN
fgs/__pycache__/model.cpython-37.pyc
Normal file
Binary file not shown.
BIN
fgs/__pycache__/views.cpython-37.pyc
Normal file
BIN
fgs/__pycache__/views.cpython-37.pyc
Normal file
Binary file not shown.
@ -72,11 +72,3 @@ def collar_history(id):
|
||||
order_by(DataPoint.datetime.desc()).\
|
||||
all()
|
||||
return jsonify([point.to_dict() for point in data_points])
|
||||
|
||||
@app.route('/collars/<int:id>/details')
|
||||
@jwt_required
|
||||
def collar_detail(id):
|
||||
collar = Collar.query.filter_by(id=id).first()
|
||||
if collar is None: abort(404)
|
||||
|
||||
return jsonify({'id': collar.id, 'name': collar.name })
|
||||
|
Loading…
Reference in New Issue
Block a user