개정판 d7b38a23
issue #1059: Stream Data 동기화 오류 수정
Change-Id: I9a266013a58dd6d9cda555c69c5933508064500a
HYTOS/HYTOS/HMBTable.py | ||
---|---|---|
894 | 894 |
def get_hmb_data(self, component_uid): |
895 | 895 |
""" get hmb data has given stream no """ |
896 | 896 |
|
897 |
matches = [data for data in self._hmbs if data._components_uid == component_uid]
|
|
897 |
matches = [data for data in self._hmbs if str(data._components_uid) == str(component_uid)]
|
|
898 | 898 |
return matches[0] if matches else None |
HYTOS/HYTOS/MainWindow.py | ||
---|---|---|
357 | 357 |
continue |
358 | 358 |
|
359 | 359 |
components_uid = model.item(1, col).text() |
360 |
stream_no = int(model.item(2, col).text()) |
|
360 | 361 |
hmb = drawing.hmbTable.get_hmb_data(components_uid) |
362 |
# region hmb가 없을 경우 추가 |
|
363 |
if not hmb: |
|
364 |
drawing.hmbTable.add(components_uid, stream_no) |
|
365 |
hmb = drawing.hmbTable.get_hmb_data(components_uid) |
|
366 |
# endregion |
|
361 | 367 |
|
362 | 368 |
for row in range(2, 24): |
363 | 369 |
item = model.item(row, col) |
내보내기 Unified diff