291 query.addBindValue(QByteArray(hashValue), |
291 query.addBindValue(QByteArray(hashValue), |
292 QSql.In | QSql.Binary) |
292 QSql.In | QSql.Binary) |
293 |
293 |
294 query.exec_() |
294 query.exec_() |
295 |
295 |
296 while query.next(): |
296 while query.next(): # __IGNORE_WARNING_M513__ |
297 threatType = query.value(0) |
297 threatType = query.value(0) |
298 platformType = query.value(1) |
298 platformType = query.value(1) |
299 threatEntryType = query.value(2) |
299 threatEntryType = query.value(2) |
300 hasExpired = bool(query.value(3)) |
300 hasExpired = bool(query.value(3)) |
301 threatList = ThreatList(threatType, platformType, |
301 threatList = ThreatList(threatType, platformType, |
336 for prefix in prefixes: |
336 for prefix in prefixes: |
337 query.addBindValue(prefix) |
337 query.addBindValue(prefix) |
338 |
338 |
339 query.exec_() |
339 query.exec_() |
340 |
340 |
341 while query.next(): |
341 while query.next(): # __IGNORE_WARNING_M513__ |
342 fullHash = bytes(query.value(0)) |
342 fullHash = bytes(query.value(0)) |
343 threatType = query.value(1) |
343 threatType = query.value(1) |
344 platformType = query.value(2) |
344 platformType = query.value(2) |
345 threatEntryType = query.value(3) |
345 threatEntryType = query.value(3) |
346 negativeCacheExpired = bool(query.value(4)) |
346 negativeCacheExpired = bool(query.value(4)) |
516 query = QSqlQuery(db) |
516 query = QSqlQuery(db) |
517 query.prepare(queryStr) |
517 query.prepare(queryStr) |
518 |
518 |
519 query.exec_() |
519 query.exec_() |
520 |
520 |
521 while query.next(): |
521 while query.next(): # __IGNORE_WARNING_M513__ |
522 threatType = query.value(0) |
522 threatType = query.value(0) |
523 platformType = query.value(1) |
523 platformType = query.value(1) |
524 threatEntryType = query.value(2) |
524 threatEntryType = query.value(2) |
525 clientState = query.value(3) |
525 clientState = query.value(3) |
526 threatList = ThreatList(threatType, platformType, |
526 threatList = ThreatList(threatType, platformType, |
644 query.addBindValue(threatList.platformType) |
644 query.addBindValue(threatList.platformType) |
645 query.addBindValue(threatList.threatEntryType) |
645 query.addBindValue(threatList.threatEntryType) |
646 |
646 |
647 query.exec_() |
647 query.exec_() |
648 |
648 |
649 while query.next(): |
649 while query.next(): # __IGNORE_WARNING_M513__ |
650 sha256Hash.addData(query.value(0)) |
650 sha256Hash.addData(query.value(0)) |
651 QCoreApplication.processEvents(QEventLoop.AllEvents, |
651 QCoreApplication.processEvents(QEventLoop.AllEvents, |
652 self.maxProcessEventsTime) |
652 self.maxProcessEventsTime) |
653 del query |
653 del query |
654 finally: |
654 finally: |
725 query.addBindValue(threatList.threatEntryType) |
725 query.addBindValue(threatList.threatEntryType) |
726 |
726 |
727 query.exec_() |
727 query.exec_() |
728 |
728 |
729 index = 0 |
729 index = 0 |
730 while query.next(): |
730 while query.next(): # __IGNORE_WARNING_M513__ |
731 if index in indexes: |
731 if index in indexes: |
732 prefix = bytes(query.value(0)) |
732 prefix = bytes(query.value(0)) |
733 output.append(prefix) |
733 output.append(prefix) |
734 index += 1 |
734 index += 1 |
735 QCoreApplication.processEvents(QEventLoop.AllEvents, |
735 QCoreApplication.processEvents(QEventLoop.AllEvents, |