Remove disabling comments
It's now disabled at the conf.py level
This commit is contained in:
parent
c873adbfe5
commit
0ee3c41202
@ -16,17 +16,11 @@ def getStream(generator):
|
||||
for page in generator.pages:
|
||||
dir = "/var/www/stream"
|
||||
if path.exists(dir):
|
||||
# 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
|
||||
images = [(getCreationTime(dir+'/'+f), f) for f in listdir(dir) if path.isfile(path.join(dir, f))]
|
||||
else: # if the website is generated locally
|
||||
images = ['placeholder.png']
|
||||
print('>>> The stream is streaming!', images)
|
||||
page.stream = images
|
||||
|
||||
def register():
|
||||
# Note(decentral1se): disabling for now
|
||||
# signals.page_generator_finalized.connect(getStream)
|
||||
pass
|
||||
signals.page_generator_finalized.connect(getStream)
|
||||
|
Loading…
Reference in New Issue
Block a user