From e9bdefe33867a88597a58bd7383e002dda5c9f80 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sun, 25 Aug 2019 11:06:04 +0200 Subject: [PATCH] Coment out problematic part for now --- stream/stream.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stream/stream.py b/stream/stream.py index 0dd3a71..59c202d 100644 --- a/stream/stream.py +++ b/stream/stream.py @@ -16,7 +16,11 @@ def getStream(generator): for page in generator.pages: dir = "/var/www/stream" if path.exists(dir): - images = [(getCreationTime(dir+'/'+f), f) for f in listdir(dir) if path.isfile(path.join(dir, f))] + # NOTE(decentral1se); Sorry! I had to comment this out because I am not sure + # what it is doing and it is breaking the site generation at the moment. The + # error I am seeing is: "CRITICAL: TypeError: an integer is required (got type str)" + # images = [(getCreationTime(dir+'/'+f), f) for f in listdir(dir) if path.isfile(path.join(dir, f))] + pass else: # if the website is generated locally images = ['placeholder.png'] print('>>> The stream is streaming!', images)