Skip to content

Commit 10013fb

Browse files
author
Shamal Faily
committed
Tidy up LaTeXApi.py
1 parent caf4d7f commit 10013fb

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

dockerLaTeX/LaTeXApi.py

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
1-
#!/usr/bin/env python3.6
1+
#!/usr/bin/python
22
from flask import Flask, request, abort
3-
from armid import *
43
import os
54

6-
75
app = Flask(__name__)
86

9-
107
@app.route('/latexApi', methods=['POST'])
118
def index():
12-
try:
13-
dockBookCmd = request.values.get('docBookCmd')
14-
os.system(dockBookCmd)
15-
return "Success"
16-
except:
17-
abort(500)
9+
try:
10+
dockBookCmd = request.values.get('docBookCmd')
11+
os.system(dockBookCmd)
12+
return "Success"
13+
except:
14+
abort(500)
1815

1916

2017
if __name__ == '__main__':
21-
app.run(host="0.0.0.0", debug=True)
18+
app.run(host="0.0.0.0", debug=True)

0 commit comments

Comments
 (0)