Untitled

 avatar
unknown
plain_text
a year ago
871 B
3
Indexable
            isNew = False
            if name not in classifications:
                isNew = True
                lastName = name
                id = str(uuid.uuid1())
                classifications[name] = id
                cmd = f"INSERT INTO `classifications` (`id`,`name`,`classificationtype`,`isgeneralclassification`,`isstageclassification`) VALUES (%s, %s, %s, %s, %s)"
                msCursor.execute(cmd, (id, name, cType, 1 if cType not in stageClassifications else 0,
                                       1 if cType in stageClassifications else 0))
                mconn.commit()

                timeOrPoints = __get_time_or_points(time, cType, 0, isNew)
                lastTime = timeOrPoints
            else:
                id = classifications[name]
                timeOrPoints = __get_time_or_points(time, cType, lastTime, isNew)
Editor is loading...