Merged with branch 'eric7'. unittest

Thu, 12 May 2022 09:00:35 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 12 May 2022 09:00:35 +0200
branch
unittest
changeset 9061
22dab1be7953
parent 9060
eb17e1744940 (current diff)
parent 9058
d1be27810566 (diff)
child 9062
7f27bf3b50c3

Merged with branch 'eric7'.

diff -r eb17e1744940 -r 22dab1be7953 eric7/PipInterface/PipPackagesWidget.py
--- a/eric7/PipInterface/PipPackagesWidget.py	Thu May 12 08:59:39 2022 +0200
+++ b/eric7/PipInterface/PipPackagesWidget.py	Thu May 12 09:00:35 2022 +0200
@@ -101,6 +101,7 @@
             if tagClass in (
                 "package-snippet__name", "package-snippet__description",
                 "package-snippet__version", "package-snippet__released",
+                "package-snippet__created",
             ):
                 self.__activeClass = tagClass
             else:
@@ -984,11 +985,15 @@
                 ])
             except KeyError:
                 description = ""
+            if "released" in result:
+                date = result["released"]
+            else:
+                date = result["created"]
             itm = QTreeWidgetItem(
                 self.searchResultList, [
                     result['name'].strip(),
                     result['version'],
-                    result["released"].strip(),
+                    date.strip(),
                     description,
                 ])
             itm.setData(0, self.SearchVersionRole, result['version'])

eric ide

mercurial