mirror of
https://github.com/tomasriveral/ReSSPublica.git
synced 2026-08-12 02:38:37 +02:00
feeds: add places of worship per Religion in Bern
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user