From 4356619a3cbc68776651d5aa3b65241154984165 Mon Sep 17 00:00:00 2001 From: Lynne Date: Tue, 1 Sep 2020 20:42:42 +1000 Subject: [PATCH] fixed some minor sillies --- buypeeb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buypeeb.py b/buypeeb.py index 62917b1..d3eb7d0 100755 --- a/buypeeb.py +++ b/buypeeb.py @@ -24,6 +24,7 @@ from gi.repository import Gtk from pebble import ProcessPool import json, sys, webbrowser +import os from os import path from threading import Thread from datetime import datetime @@ -258,7 +259,7 @@ class BuypeebApp: if self.msgBox("Clear ended?", "Are you sure you want to clear all ended items from the watchlist?", buttons = Gtk.ButtonsType.OK_CANCEL) == Gtk.ResponseType.OK: for id, item in self.settings.watchlist.items(): if not item.available: - del self.settings.watchlist[key] + del self.settings.watchlist[id] self.renderList()