X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e8390b9f10338ff5ced700f5dbd87ba30a3566bd..7b49c1a8c8a2c7634342ebcacb5520f8e243fda4:/scripts/setmainpage.py 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('.')