Spaces:
Running
Running
Commit
·
3465bfc
1
Parent(s):
d039788
test
Browse files- app.py +2 -1
- templates/data.html +1 -0
app.py
CHANGED
|
@@ -211,6 +211,7 @@ def get_bot_valresponse():
|
|
| 211 |
def data():
|
| 212 |
tbl_htmls = {}
|
| 213 |
firsttable = ""
|
|
|
|
| 214 |
tbl_selected = session.get('tbl_selected', [])
|
| 215 |
print("-------------------------Hello world------------------------")
|
| 216 |
print(tbl_selected)
|
|
@@ -228,7 +229,7 @@ def data():
|
|
| 228 |
html_top_records = html_top_records.replace('<thead>', '<thead class="thead-light" style="top: 0;position: sticky;">')
|
| 229 |
tbl_htmls[tblname] = html_top_records
|
| 230 |
|
| 231 |
-
return render_template('data.html', table_htmls = tbl_htmls, req_tables = json.dumps(firsttable))
|
| 232 |
|
| 233 |
@app.route("/", methods=['GET', 'POST'])
|
| 234 |
@app.route("/home", methods=['GET', 'POST'])
|
|
|
|
| 211 |
def data():
|
| 212 |
tbl_htmls = {}
|
| 213 |
firsttable = ""
|
| 214 |
+
slsslinfo = session.get("sl_subsl")
|
| 215 |
tbl_selected = session.get('tbl_selected', [])
|
| 216 |
print("-------------------------Hello world------------------------")
|
| 217 |
print(tbl_selected)
|
|
|
|
| 229 |
html_top_records = html_top_records.replace('<thead>', '<thead class="thead-light" style="top: 0;position: sticky;">')
|
| 230 |
tbl_htmls[tblname] = html_top_records
|
| 231 |
|
| 232 |
+
return render_template('data.html', table_htmls = tbl_htmls, tempdisplay = slsslinfo, req_tables = json.dumps(firsttable))
|
| 233 |
|
| 234 |
@app.route("/", methods=['GET', 'POST'])
|
| 235 |
@app.route("/home", methods=['GET', 'POST'])
|
templates/data.html
CHANGED
|
@@ -25,6 +25,7 @@
|
|
| 25 |
</div>
|
| 26 |
<div class="col-md-3 d-flex justify-content-end align-items-center" style="margin-left: 70px;">
|
| 27 |
<!-- Download Button -->
|
|
|
|
| 28 |
<button class="btn btn-light" onclick="downloadTableData()">
|
| 29 |
<i class="fas fa-download mr-2"></i> Download All
|
| 30 |
</button>
|
|
|
|
| 25 |
</div>
|
| 26 |
<div class="col-md-3 d-flex justify-content-end align-items-center" style="margin-left: 70px;">
|
| 27 |
<!-- Download Button -->
|
| 28 |
+
<p>{{ tempdisplay }}</p>
|
| 29 |
<button class="btn btn-light" onclick="downloadTableData()">
|
| 30 |
<i class="fas fa-download mr-2"></i> Download All
|
| 31 |
</button>
|