diff --git a/main.py b/main.py index 9f9725c2dc19911275c02f7c867627ca4fc71c87..2e110ddea2dd6599f635f155e83ed49613a5cc21 100644 --- a/main.py +++ b/main.py @@ -4,6 +4,7 @@ import inky_helper as ih import inky_frame import gc import random +import time def write_err(text): with open('/sd/errors.log', 'a+') as error_log: @@ -54,6 +55,7 @@ if response != None: for item in response: if item.url_path == last_file: response.remove(item) + random.seed(time.time()) ran = random.choice(response) if ran.mimetype == "image/jpeg": with open('/sd/last_wallpaper', 'w+') as update_last: