mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-03 17:39:42 +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:
|
||||
if link.b:
|
||||
resultCount += 1
|
||||
|
||||
# print(f"Result found: ({resultCount}) {link.b.text} | {link['href']}")
|
||||
results.append(link['href'])
|
||||
resulttitles.append(link.b.text)
|
||||
result = True
|
||||
|
||||
@@ -221,6 +221,7 @@ class MainWindow(QtWidgets.QMainWindow, QWidget):
|
||||
self.softwareList.addItems(self.postnames)
|
||||
if not response:
|
||||
print(f"No Results found for \"{search_text}\"")
|
||||
self.softwareList.addItem("No Results")
|
||||
|
||||
def get_item_index(self, item, list, listlinks, debug):
|
||||
position = list.index(item)
|
||||
|
||||
Reference in New Issue
Block a user