Skip to content

Commit 632650d

Browse files
committed
fix typo - final version
1 parent 55a0564 commit 632650d

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

TextBlock.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from PyQt5.QtGui import QIcon, QPixmap, QImage
1414
from db_manager import DbManager
1515

16-
addr = 'http://localhost:5000'
16+
addr = 'http://18.221.153.93:5000'
1717
upload_url = addr + '/upload'
1818

1919
class Ui_MainWindow(object):
@@ -379,7 +379,6 @@ def displayData(self, results):
379379

380380
for i in range(5):
381381
header.setSectionResizeMode(i, QtWidgets.QHeaderView.ResizeToContents)
382-
header.setSectionResizeMode(4, QtWidgets.QHeaderView.Stretch)
383382

384383
def clearData (self):
385384
confirm = QMessageBox()

box_drawing.py

-2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ def should_merge(box1, box2):
102102
else:
103103
return (near_horizontal or near_vertical)
104104

105-
106105
def merge(box1, box2):
107106
'''
108107
Determine whether or not 2 boxes need to be merged
@@ -169,7 +168,6 @@ def mergeBox(box1, box2):
169168

170169
return reorder_points(np.asarray(new_box))
171170

172-
173171
def minimize_box_num(boxes):
174172
'''
175173
Minimize the number of boxes to draw by determine

db_manager.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import sys
33
from PyQt5 import QtSql
44

5-
def path_to_temp(relative_path):
5+
def retrieve_path(relative_path):
66
try:
77
base_path = sys._MEIPASS
88
except Exception:
@@ -12,7 +12,7 @@ def path_to_temp(relative_path):
1212

1313
class DbManager:
1414
def __init__(self, app_name):
15-
dir_path = path_to_temp('data')
15+
dir_path = retrieve_path('data')
1616

1717
if not os.path.exists(dir_path):
1818
os.makedirs(dir_path)

0 commit comments

Comments
 (0)