| 12345678910111213 |
- from .tool.func import *
- def api_w_2(conn, name):
- curs = conn.cursor()
- curs.execute("select data from data where title = ?", [name])
- data = curs.fetchall()
- if data:
- json_data = { "title" : name, "data" : render_set(title = name, data = data[0][0]) }
-
- return flask.jsonify(json_data)
- else:
- return flask.jsonify({})
|