개정판 3b09bf8e
issue #563: considering item type
Change-Id: I01c828778b541daccd914b8869b10056ceb6ec74
DTI_PID/DTI_PID/AppDocData.py | ||
---|---|---|
515 | 515 |
try: |
516 | 516 |
sql = self.project.database.to_sql(""" |
517 | 517 |
INSERT INTO Symbol(name, SymbolType_UID, threshold, minMatchPoint, isDetectOrigin, rotationCount, ocrOption, isContainChild, originalPoint, connectionPoint, baseSymbol, additionalSymbol, isExceptDetect, hasInstrumentLabel, width, height, flip) |
518 |
VALUES(?, (select UID from SymbolType where Type='{}'), ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);
|
|
519 |
""".format(symbol.getType()))
|
|
518 |
VALUES(?, (select UID from SymbolType where Type=?), ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);
|
|
519 |
""") |
|
520 | 520 |
|
521 | 521 |
cursor = conn.cursor() |
522 |
query = (symbol.getName(), symbol.getThreshold() |
|
522 |
query = (symbol.getName(), symbol.getType(), symbol.getThreshold()
|
|
523 | 523 |
, symbol.getMinMatchCount(), symbol.getIsDetectOnOrigin(), symbol.getRotationCount() |
524 | 524 |
, symbol.getOcrOption(), symbol.getIsContainChild() |
525 | 525 |
, symbol.getOriginalPoint(), symbol.getConnectionPoint() |
내보내기 Unified diff