Coment out problematic part for now
This commit is contained in:
parent
2435c49968
commit
e9bdefe338
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user