프로젝트

일반

사용자정보

개정판 3b09bf8e

ID3b09bf8ef5f20ce71496f4a4519f52405be1b842
상위 9bb3d1e4
하위 36b8ac44, 79ce5bcf

함의성이(가) 약 5년 전에 추가함

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

클립보드 이미지 추가 (최대 크기: 500 MB)