Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -87,6 +87,10 @@ def get_javascript_data(jsdata):
|
|
| 87 |
def searchDocument():
|
| 88 |
return render_template('wordSearch.html')
|
| 89 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
@app.route('/searchInDocs',methods=["GET", "POST"])
|
| 91 |
def getSearchinDocs():
|
| 92 |
arr=[]
|
|
@@ -401,7 +405,7 @@ def modifyingcalcRefDynamic(img):
|
|
| 401 |
|
| 402 |
@app.route('/get-pdf/<jsdata>')
|
| 403 |
def get_pdf(jsdata):
|
| 404 |
-
|
| 405 |
# Download PDF from Dropbox
|
| 406 |
pdfpath,pdflink=tsadropboxretrieval.getPathtoPDF_File(nameofPDF=jsdata)
|
| 407 |
print('pdfpath',pdfpath)
|
|
@@ -720,7 +724,7 @@ def cvtSummarytoXML(jsdata):
|
|
| 720 |
# print(result[1])
|
| 721 |
xmllink=google_sheet_to_xml.create_xml(documentname=result[1],dbPath=path)
|
| 722 |
return jsonify(xmllink)
|
| 723 |
-
|
| 724 |
|
| 725 |
#_________________________________________________________________________________________________________________________
|
| 726 |
#_________________________________________________________________________________________________________________________
|
|
|
|
| 87 |
def searchDocument():
|
| 88 |
return render_template('wordSearch.html')
|
| 89 |
|
| 90 |
+
@app.route('/legends',methods=["GET", "POST"])
|
| 91 |
+
def legendDirectory():
|
| 92 |
+
return render_template('legenddirectory.html')
|
| 93 |
+
|
| 94 |
@app.route('/searchInDocs',methods=["GET", "POST"])
|
| 95 |
def getSearchinDocs():
|
| 96 |
arr=[]
|
|
|
|
| 405 |
|
| 406 |
@app.route('/get-pdf/<jsdata>')
|
| 407 |
def get_pdf(jsdata):
|
| 408 |
+
print('pdfname',jsdata)
|
| 409 |
# Download PDF from Dropbox
|
| 410 |
pdfpath,pdflink=tsadropboxretrieval.getPathtoPDF_File(nameofPDF=jsdata)
|
| 411 |
print('pdfpath',pdfpath)
|
|
|
|
| 724 |
# print(result[1])
|
| 725 |
xmllink=google_sheet_to_xml.create_xml(documentname=result[1],dbPath=path)
|
| 726 |
return jsonify(xmllink)
|
| 727 |
+
|
| 728 |
|
| 729 |
#_________________________________________________________________________________________________________________________
|
| 730 |
#_________________________________________________________________________________________________________________________
|