개정판 c403bbfd
issue #627: fix export data list
Change-Id: I2f85866db755a5049fdc8f3a6b52cdfdfef3ae93
DTI_PID/DTI_PID/AppDocData.py | ||
---|---|---|
3140 | 3140 |
attrs = cursor.fetchall() |
3141 | 3141 |
data = [] |
3142 | 3142 |
for attr in attrs: |
3143 |
data.append([attr[0], attr[1]])
|
|
3143 |
data.append([attr['Name'], attr['Value']])
|
|
3144 | 3144 |
if data: |
3145 | 3145 |
data.insert(0, ['Drawing Name', comp[1]]) |
3146 | 3146 |
data.insert(0, ['UID', comp[0]]) |
... | ... | |
3181 | 3181 |
attrs = cursor.fetchall() |
3182 | 3182 |
data = [] |
3183 | 3183 |
for attr in attrs: |
3184 |
data.append([attr[0], attr[1]])
|
|
3184 |
data.append([attr['Attribute'], attr['Value']])
|
|
3185 | 3185 |
if data: |
3186 | 3186 |
data.insert(0, ['Type', comp[3]]) |
3187 | 3187 |
data.insert(0, ['Drawing Name', comp[1]]) |
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
344 | 344 |
app_doc_data = AppDocData.instance() |
345 | 345 |
project = app_doc_data.getCurrentProject() |
346 | 346 |
version = QCoreApplication.applicationVersion() |
347 |
title = f"{App.NAME}({version}) - {project.name}:" \ |
|
347 |
#title = f"{App.NAME}({version}) - {project.name}:" \ |
|
348 |
# f"{app_doc_data.activeDrawing.name if app_doc_data.activeDrawing else ''}" |
|
349 |
title = f"{App.NAME} : ID2 " \ |
|
348 | 350 |
f"{app_doc_data.activeDrawing.name if app_doc_data.activeDrawing else ''}" |
349 | 351 |
|
350 | 352 |
return title |
DTI_PID/DTI_PID/RecognitionDialog.py | ||
---|---|---|
872 | 872 |
|
873 | 873 |
maxProgressValue = 0 |
874 | 874 |
start_time = timeit.default_timer() |
875 |
listWidget.addItem(f"Start recognition {datetime.now().strftime('%Y-%m-%d %H:%M:%S')} : {mainRes}")
|
|
875 |
listWidget.addItem(f"Start recognition {datetime.now().strftime('%Y-%m-%d %H:%M:%S')} : {os.path.basename(mainRes).split('.')[0]}")
|
|
876 | 876 |
threadLock.acquire() |
877 | 877 |
|
878 | 878 |
worker.updateBatchProgress.emit(len(drawings), 1) |
내보내기 Unified diff