forked from Glaceon31/LLhelper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlegacy_app.py
More file actions
92 lines (71 loc) · 2.87 KB
/
Copy pathlegacy_app.py
File metadata and controls
92 lines (71 loc) · 2.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
from flask import Blueprint, render_template, abort
legacy_app = Blueprint('legacy', __name__)
legacy_app.template_folder = legacy_app.root_path
### activity ###
@legacy_app.route("/activitypt")
def activitypt():
return render_template("activitypt.html")
@legacy_app.route("/llactivity", methods=['GET', 'POST'])
def llactivity():
return render_template('legacy/templates/llactivity.html')
@legacy_app.route("/llrally", methods=['GET', 'POST'])
def llrally():
return render_template('legacy/templates/llrally.html')
@legacy_app.route("/smmulti")
def smmulti():
return render_template("smmulti.html")
@legacy_app.route("/llsm", methods=['GET', 'POST'])
def llsm():
return render_template('legacy/templates/llscorematch.html')
@legacy_app.route("/llmf", methods=['GET', 'POST'])
def llmf():
return render_template('legacy/templates/llmedleyfestival.html')
@legacy_app.route("/llcf", methods=['GET', 'POST'])
def llcf():
return render_template('legacy/templates/llchallengefestival.html')
@legacy_app.route("/llnm", methods=['GET', 'POST'])
def llnm():
return render_template('legacy/templates/llnakayoshi.html')
@legacy_app.route("/mfpt", methods=['GET', 'POST'])
def mfpt():
return render_template('legacy/templates/mfpt.html')
@legacy_app.route("/cfpt", methods=['GET', 'POST'])
def cfpt():
return render_template('legacy/templates/cfpt.html')
@legacy_app.route("/nmpt", methods=['GET', 'POST'])
def nmpt():
return render_template('legacy/templates/nmpt.html')
### data ###
@legacy_app.route("/llsongdata")
def llsongdata():
songsjson = open('newsongsjson.txt', 'rb').read()
return render_template('legacy/templates/llsongdata.html', songsjson = songsjson)
@legacy_app.route("/llcoverage")
def llcoverage():
cardsjson = open('newcardsjson.txt', 'rb').read()
return render_template('legacy/templates/llcoverage.html', cardsjson = cardsjson)
@legacy_app.route("/llnewcarddata")
def llnewcarddata():
cardsjson = open('newcardsjson.txt', 'rb').read()
return render_template('legacy/templates/llnewcarddata.html', cardsjson = cardsjson)
@legacy_app.route("/llurcardrank")
def llurcardrank():
cardsjson = open('newcardsjson.txt', 'rb').read()
return render_template('legacy/templates/llurcardrank.html', cardsjson = cardsjson)
### species ###
@legacy_app.route("/llspecies", methods=['GET', 'POST'])
@legacy_app.route("/llurrank", methods=['GET', 'POST'])
def urrank():
return render_template('legacy/templates/llurrank.html')
### level up ###
@legacy_app.route("/lllvlup", methods=['GET', 'POST'])
def lllvlup():
return render_template('legacy/templates/lllvlup.html')
### mainpage ###
@legacy_app.route("/", methods=['GET', 'POST'])
def hello():
return render_template('legacy/templates/mainpage.html')
@legacy_app.route("/about")
def about():
return render_template('legacy/templates/about.html')
from legacy_llunit import *