Skip to content

Commit 346d8e2

Browse files
committed
I change the version of Python for prepareDataLINDO to 3
1 parent 4d5525e commit 346d8e2

File tree

7 files changed

+165
-251
lines changed

7 files changed

+165
-251
lines changed

application/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from index import app, db
44
from sqlalchemy.exc import IntegrityError
55
from .utils.auth import generate_token, requires_auth, verify_token
6-
import prepareDataLINDO
6+
import application.prepareDataLINDO
77

88

99
@app.route('/', methods=['GET'])
@@ -67,5 +67,5 @@ def is_token_valid():
6767

6868
@app.route("/api/calculate", methods=["GET"])
6969
def calculate():
70-
binder = prepareDataLINDO.calculation()
70+
binder = application.prepareDataLINDO.calculation()
7171
return jsonify(binder)

application/findNonASCIISymbols.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
with open("prepareDataLINDO.py") as fp:
2+
for i, line in enumerate(fp):
3+
if "\xe2" in line:
4+
print (i, repr(line))

application/main.py

Lines changed: 0 additions & 115 deletions
This file was deleted.

0 commit comments

Comments
 (0)