SQLALCHEMY UTILISATEURS À JSON CODE SINPET
@app.route('/results/')
def results():
cols = ['id', 'url', 'shipping']
data = Table.query.all()
result = [{col: getattr(d, col) for col in cols} for d in data]
return jsonify(result=result)
Uninterested Unicorn