mirror of
https://github.com/tomasriveral/ReSSPublica.git
synced 2026-08-12 02:38:37 +02:00
feeds: first draft basel air quality
This commit is contained in:
@@ -10,12 +10,14 @@ from .federalInitiativesFeeds import *
|
||||
from .translations import *
|
||||
from .bernAsianHornet import *
|
||||
from .bernReligionMap import *
|
||||
from .baselLuftQualitat import *
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("--verbose", action="store_true", help="Enable debug logging")
|
||||
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("--gen_baselLuftqualitat", action="store_true", help="Generate Basel air quality feed")
|
||||
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")
|
||||
@@ -40,4 +42,6 @@ def main():
|
||||
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)
|
||||
if args.gen_baselLuftqualitat:
|
||||
generateBaselLuftqualitat(ASSETS)
|
||||
logging.info("Done")
|
||||
|
||||
Reference in New Issue
Block a user