|
|
@ -1,5 +1,9 @@ |
|
|
|
# coding:utf-8 |
|
|
|
# coding:utf-8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import sys |
|
|
|
|
|
|
|
sys.path.append("/class/core") |
|
|
|
|
|
|
|
import public |
|
|
|
|
|
|
|
|
|
|
|
from flask import Blueprint, render_template |
|
|
|
from flask import Blueprint, render_template |
|
|
|
|
|
|
|
|
|
|
|
crontab = Blueprint('crontab', __name__, template_folder='templates') |
|
|
|
crontab = Blueprint('crontab', __name__, template_folder='templates') |
|
|
@ -8,3 +12,9 @@ crontab = Blueprint('crontab', __name__, template_folder='templates') |
|
|
|
@crontab.route("/") |
|
|
|
@crontab.route("/") |
|
|
|
def index(): |
|
|
|
def index(): |
|
|
|
return render_template('default/crontab.html') |
|
|
|
return render_template('default/crontab.html') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@crontab.route("/list", methods=['GET', 'POST']) |
|
|
|
|
|
|
|
def list(): |
|
|
|
|
|
|
|
data = [] |
|
|
|
|
|
|
|
return public.getJson({}) |
|
|
|