Automatically scan when running

This commit is contained in:
John McCardle 2022-02-03 15:25:00 -05:00
parent 362c109654
commit 0a5d2aacd6
1 changed files with 2 additions and 0 deletions

View File

@ -163,6 +163,8 @@ if __name__ == '__main__':
subdirs.remove(os.path.basename(os.path.abspath('.')))
#os.chdir('..')
scaffolds = [BlogScaffold(os.path.join('..', sd)) for sd in subdirs]
for s in scaffolds:
s.scan()
scaffolds.sort(key = lambda s: s.blog_images[-1], reverse=True)
for s in scaffolds: