Source

vpackager / src / vpackager / dbutils.py

Diff from to

src/vpackager/dbutils.py

         self.close()
         return self.notify(ret, group='history')
 
+    def SearchHistoryByApp(self, appname=''):
+        """ Search the job history for app named appname"""
+        db, cursor = self._open()
+        sql = '''SELECT id, app, ver, release, buildstart, buildend, result
+        FROM history WHERE app LIKE "''' + appname + '%"'
+        cursor.execute(sql)
+        ret = cursor.fetchall()
+        self.close()
+        return self.notify(ret, group='history')
 
     def WipeHistory(self):
         """ Deletes the entire job history. Only use after confirming with the