on fait des tests écoute
This commit is contained in:
parent
02f835e755
commit
2b0e99031e
@ -1,5 +1,6 @@
|
|||||||
from time import sleep
|
from time import sleep
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import os
|
||||||
from flask import Flask, Response, redirect, url_for, request, session, abort, render_template, send_from_directory
|
from flask import Flask, Response, redirect, url_for, request, session, abort, render_template, send_from_directory
|
||||||
from apscheduler.schedulers.background import BackgroundScheduler
|
from apscheduler.schedulers.background import BackgroundScheduler
|
||||||
from apscheduler.triggers.cron import CronTrigger
|
from apscheduler.triggers.cron import CronTrigger
|
||||||
@ -7,6 +8,8 @@ from flask_login import LoginManager, UserMixin, login_required, login_user, log
|
|||||||
from werkzeug.utils import secure_filename
|
from werkzeug.utils import secure_filename
|
||||||
import json
|
import json
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
|
||||||
global password
|
global password
|
||||||
with open("/app/MsRewards-Reborn/user_data/flask.json", "r") as inFile:
|
with open("/app/MsRewards-Reborn/user_data/flask.json", "r") as inFile:
|
||||||
data = json.load(inFile)
|
data = json.load(inFile)
|
||||||
|
@ -79,8 +79,7 @@
|
|||||||
|
|
||||||
<form method="POST" action="/upload_file/" enctype=multipart/form-data>
|
<form method="POST" action="/upload_file/" enctype=multipart/form-data>
|
||||||
<table>
|
<table>
|
||||||
<tr ><td><input type="file" id="file1" name="file1" onchange='document.getElementById("2").style.visibility = "visible";'></td></tr>
|
<tr ><td><input type="file" id="file1" name="file1" onchange='table.insertRow(0).insertCell(0).innerHTML = "NEW CELL1"'></td></tr>
|
||||||
<tr id="2" style="visibility: hidden;"><td><input type="file" id="file2" name="file2" ></td></tr>
|
|
||||||
<tr><td><input type="submit" name="settings" id="submit" value="send file" class="button"/></td></tr>
|
<tr><td><input type="submit" name="settings" id="submit" value="send file" class="button"/></td></tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user