diff --git a/daily_report/templates/index.html b/daily_report/templates/index.html index 4b54ab4..2aac656 100644 --- a/daily_report/templates/index.html +++ b/daily_report/templates/index.html @@ -6,9 +6,7 @@

tttt

test Image -test Image -test Image -test Image + 222 \ No newline at end of file diff --git a/daily_report/test_report.py b/daily_report/test_report.py index d858345..87785ba 100644 --- a/daily_report/test_report.py +++ b/daily_report/test_report.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from flask import Flask, render_template, jsonify +from flask import Flask, render_template, jsonify,url_for from flask_mail import Mail, Message import os from threading import Thread @@ -34,7 +34,8 @@ def show_index(): msg = Message(title, sender=sender, recipients=recipients) msg.subject = f"test_游戏日报" - full_filename = os.path.join(app.config['UPLOAD_FOLDER'], 'img2019-10-31.png') + #full_filename = os.path.join(app.config['UPLOAD_FOLDER'], 'img2019-10-31.png') + full_filename = url_for("static",filename= 'images/img2019-10-31.png') print(full_filename) msg.html = render_template('index.html', user_image=full_filename)