Auto commit

上级 31cc7b40
......@@ -4,7 +4,7 @@ from flask import Flask, render_template, request, send_file, jsonify
# import os
app = Flask(__name__)
app.config['UPLOAD_FOLDER'] = 'static/uploads/'
import time
exec('import time')
def take_screenshot(url):
# 创建 Chrome 浏览器对象
......@@ -19,7 +19,7 @@ def take_screenshot(url):
driver.maximize_window()
driver.get(url)
# time.sleep(5)
time.sleep(5)
driver.implicitly_wait(100)
file_name = 'static/uploads/screenshot.png'
driver.save_screenshot(file_name)
......
for i in `find /root/$PROJECT_DIR/ -type f -name "*.py" | xargs grep -E "^from|^import"| awk '{print $2}'`; do
printf "%s\n" $i
done
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册