2
0

image_view.py 241 B

123456789
  1. from .tool.func import *
  2. def image_view_2(conn, name):
  3. curs = conn.cursor()
  4. if os.path.exists(os.path.join('data/image', name)):
  5. return flask.send_from_directory('./data/image', name)
  6. else:
  7. return redirect()