feeds: add places of worship per Religion in Bern

This commit is contained in:
2026-06-17 21:56:28 +02:00
parent c54b9f9f3e
commit b13199e5e2
15 changed files with 409 additions and 3 deletions
+5
View File
@@ -9,6 +9,7 @@ from .utils import *
from .federalInitiativesFeeds import *
from .translations import *
from .bernAsianHornet import *
from .bernReligionMap import *
def main():
parser = argparse.ArgumentParser()
@@ -16,6 +17,8 @@ def main():
parser.add_argument("--gen_federalInitiatives", action="store_true", help="Generate federal popular initiatives feed")
parser.add_argument("--gen_bernAsianHornets", action="store_true", help="Generate Asian hornets sightings in Bern feed (only Mondays)")
parser.add_argument("--force_gen_bernAsianHornets", action="store_true", help="Generate Asian hornets sightings in Bern feed even when not Monday")
parser.add_argument("--gen_bernReligionMap", action="store_true", help="Generate map of religions in Bern (only start of trimesters)")
parser.add_argument("--force_gen_bernReligionMap", action="store_true", help="Generate map of religions in Bern even when not start of trimester")
args = parser.parse_args()
@@ -35,4 +38,6 @@ def main():
generateFederalFeed(CACHE)
if (date.today().weekday() == 0 and args.gen_bernAsianHornets) or args.force_gen_bernAsianHornets:
generateBernAsianHornetFeed(ASSETS, CACHE)
if ( args.gen_bernReligionMap and date.today().day == 1 and date.today().month in [1, 5, 9]) or args.force_gen_bernReligionMap:
generateBernReligionMap(ASSETS, CACHE)
logging.info("Done")