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