X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e8390b9f10338ff5ced700f5dbd87ba30a3566bd..5ce9801414bc64793eaf1663b1cfce1b2c4bf857:/scripts/setmainpage.py?ds=inline diff --git a/scripts/setmainpage.py b/scripts/setmainpage.py index 245ed1d75..324424356 100755 --- a/scripts/setmainpage.py +++ b/scripts/setmainpage.py @@ -1,5 +1,8 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from django.core.management import setup_environ from wolnelektury import settings import sys @@ -28,7 +31,7 @@ for tag in Tag.objects.all(): tag.main_page = True else: tag.main_page = False - + tag.save() sys.stderr.write('.')