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