From 3341f89d333d77fa57d71210f16848a9acc5895f Mon Sep 17 00:00:00 2001 From: Lukas Baumann Date: Thu, 3 Dec 2020 02:47:53 +0100 Subject: [PATCH] Update backend.py --- backend.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/backend.py b/backend.py index cc90397..8a1e221 100644 --- a/backend.py +++ b/backend.py @@ -42,15 +42,6 @@ class MyProgressBar(): def del_file(path, Seconds=10): Popen("powershell.exe Sleep(" + str(Seconds) + "); Remove-Item .\\Images\\" + path, shell=True, creationflags=CREATE_NEW_CONSOLE) - # global intrvl - # if int(open(CONFIG, "r").read().split()[2]): - # _thread.start_new_thread ( system, tuple(["powershell -WindowStyle Hidden \"Sleep(" + str(Seconds) + "); Remove-Item .\\Images\\" + path + "\""])) - # else: - # if int(open(CONFIG, "r").read().split()[3]): - # if intrvl < 3: - # intrvl = 3 - # else: - # _thread.start_new_thread ( system, tuple(["start powershell -WindowStyle Hidden \"Sleep(" + str(Seconds) + "); Remove-Item .\\Images\\" + path + "\""])) posts = open(".history", "r").read() for i in reddit.subreddit("wallpaper").hot(limit = 1000): @@ -115,4 +106,4 @@ try: except NoImage: print("Error: Url doesn't point to an Image") except Exception as E: - print("Error: " + type(E).__name__) \ No newline at end of file + print("Error: " + type(E).__name__)