api_image_view.py 256 B

123456789
  1. from .tool.func import *
  2. def api_image_view_2(conn, name, app_var):
  3. curs = conn.cursor()
  4. if os.path.exists(os.path.join(app_var['path_data_image'], name)):
  5. return flask.jsonify({ "exist" : "1" })
  6. else:
  7. return flask.jsonify({})