mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-04 17:59:43 +02:00
Add "No Results" result on no results &cleanup (NOTE: STILL REQUIRES ERROR HANDLING & OVERALL IMPROVEMENT)
This commit is contained in:
@@ -40,8 +40,6 @@ def scrape_uztracker(search, debug):
|
|||||||
for link in links:
|
for link in links:
|
||||||
if link.b:
|
if link.b:
|
||||||
resultCount += 1
|
resultCount += 1
|
||||||
|
|
||||||
# print(f"Result found: ({resultCount}) {link.b.text} | {link['href']}")
|
|
||||||
results.append(link['href'])
|
results.append(link['href'])
|
||||||
resulttitles.append(link.b.text)
|
resulttitles.append(link.b.text)
|
||||||
result = True
|
result = True
|
||||||
|
|||||||
@@ -221,6 +221,7 @@ class MainWindow(QtWidgets.QMainWindow, QWidget):
|
|||||||
self.softwareList.addItems(self.postnames)
|
self.softwareList.addItems(self.postnames)
|
||||||
if not response:
|
if not response:
|
||||||
print(f"No Results found for \"{search_text}\"")
|
print(f"No Results found for \"{search_text}\"")
|
||||||
|
self.softwareList.addItem("No Results")
|
||||||
|
|
||||||
def get_item_index(self, item, list, listlinks, debug):
|
def get_item_index(self, item, list, listlinks, debug):
|
||||||
position = list.index(item)
|
position = list.index(item)
|
||||||
|
|||||||
Reference in New Issue
Block a user