| 48 | | query = "INSERT INTO ReviewFiles VALUES(NULL,'" + dbEscape(self.IDReview) + "', '" + dbEscape(self.Path) + "','" + dbEscape(self.LineStart) + "','" + dbEscape(self.LineEnd) + "','" + dbEscape(self.Version) + "')" |
|---|
| 49 | | cursor.execute(query) |
|---|
| | 48 | cursor.execute("INSERT INTO ReviewFiles " |
|---|
| | 49 | "(IDReview, Path, LineStart, LineEnd, Version) " |
|---|
| | 50 | "VALUES (%s, %s, %s, %s, %s) ", |
|---|
| | 51 | (self.IDReview, self.Path, self.LineStart, self.LineEnd, self.Version)) |
|---|
| | 52 | self.IDFile = db.get_last_id(cursor, 'ReviewFiles', 'IDFile') |
|---|
| 54 | | query = "UPDATE ReviewFiles SET IDReview = '" + dbEscape(self.IDReview) + "', Path = '" + dbEscape(self.Path) + + "', LineStart = '" + dbEscape(self.LineStart) + "', LineEnd = '" + dbEscape(self.LineEnd) + "', Version = '" + dbEscape(self.Version) + "' WHERE IDFile = '" + dbEscape(self.IDFile) + "'" |
|---|
| 55 | | cursor.execute(query) |
|---|
| | 56 | cursor.execute("UPDATE ReviewFiles SET " |
|---|
| | 57 | "IDReview=%s, Path=%s, LineStart=%s, LineEnd=%s, Version=%s WHERE IDFile=%s", |
|---|
| | 58 | (self.IDReview, self.Path, self.LineStart, self.LineEnd, self.Version, self.IDFile)) |
|---|