fix main so it builds the website also

This commit is contained in:
Anish Lakhwara 2022-02-26 22:03:57 +10:00
parent 55094a3367
commit 9ce31eef66

View file

@ -1,10 +1,8 @@
import click
from grab import makePublic from grab import makePublic
from shared import TagHelper from shared import TagHelper
from build import build from build import build
@click.command()
def grab(): def grab():
all_files = TagHelper.getAllFiles() all_files = TagHelper.getAllFiles()
filtered_files = makePublic.filterFiles(all_files) filtered_files = makePublic.filterFiles(all_files)
@ -13,14 +11,15 @@ def grab():
makePublic.censorFiles() makePublic.censorFiles()
@click.command()
def build_website(): def build_website():
print('building websites')
build.generate_website() build.generate_website()
@click.command()
def main(): def main():
print('in main')
grab() grab()
print('going to build')
build_website() build_website()