AssistantEric/APIsManager.py

changeset 142
eac390ad0c2e
parent 141
ecbf4f8b3a1b
child 143
468560828f55
diff -r ecbf4f8b3a1b -r eac390ad0c2e AssistantEric/APIsManager.py
--- a/AssistantEric/APIsManager.py	Sun Dec 31 16:59:08 2017 +0100
+++ b/AssistantEric/APIsManager.py	Sat Mar 31 12:26:27 2018 +0200
@@ -153,7 +153,7 @@
             query.prepare(self.file_loaded_stmt)
             query.bindValue(":file", apiFile)
             query.exec_()
-            if query.next() and query.isValid():
+            if query.next() and query.isValid():    # __IGNORE_WARNING_M513__
                 loadTime = QDateTime.fromString(query.value(0), Qt.ISODate)
             else:
                 loadTime = QDateTime(1970, 1, 1, 0, 0)
@@ -313,7 +313,7 @@
             query.bindValue(":file", apiFile)
             if not query.exec_():
                 return
-            if not query.next():
+            if not query.next():        # __IGNORE_WARNING_M513__
                 return
             fileId = int(query.value(0))
             
@@ -433,7 +433,7 @@
             query.prepare(self.file_id_stmt)
             query.bindValue(":file", apiFile)
             query.exec_()
-            query.next()
+            query.next()                    # __IGNORE_WARNING_M513__
             fileId = int(query.value(0))
             
             # step 2: delete all API entries belonging to this file
@@ -773,7 +773,7 @@
         try:
             query = QSqlQuery(db)
             query.exec_(self.api_files_stmt)
-            while query.next():
+            while query.next():                     # __IGNORE_WARNING_M513__
                 apiFiles.append(query.value(0))
         finally:
             del query
@@ -796,7 +796,7 @@
                 query = QSqlQuery(db)
                 ok = query.exec_(self.format_select_stmt)
                 if ok:
-                    query.next()
+                    query.next()                    # __IGNORE_WARNING_M513__
                     formatVersion = int(query.value(0))
                     if formatVersion >= self.DB_VERSION:
                         prepared = True
@@ -844,7 +844,7 @@
                 
                 if query is not None:
                     query.exec_()
-                    while query.next():
+                    while query.next():             # __IGNORE_WARNING_M513__
                         completions.append({"completion": query.value(0),
                                             "context": query.value(1),
                                             "pictureId": query.value(2)})
@@ -857,7 +857,7 @@
                 query.prepare(self.bases_stmt)
                 query.bindValue(":class", context)
                 query.exec_()
-                if query.next():
+                if query.next():                # __IGNORE_WARNING_M513__
                     bases = query.value(0).split()
                 else:
                     bases = []
@@ -904,7 +904,7 @@
                     query.prepare(self.ct_stmt)
                 query.bindValue(":acWord", acWord)
                 query.exec_()
-                while query.next():
+                while query.next():             # __IGNORE_WARNING_M513__
                     word = query.value(0)
                     sig = query.value(1)
                     fullCtx = query.value(2)
@@ -931,7 +931,7 @@
                 query.prepare(self.bases_stmt)
                 query.bindValue(":class", context)
                 query.exec_()
-                if query.next():
+                if query.next():                # __IGNORE_WARNING_M513__
                     bases = query.value(0).split()
                 else:
                     bases = []

eric ide

mercurial