Beispiel #1
0
def update():
    import datetime
    current_year = datetime.datetime.now().date().year
    for year in range(current_year - 1, current_year + 1):
        crawler = FirstSeriesCrawler()
        crawler.get_documents(year)
        del crawler

    p = Populator()
    p.populate_all(current_year - 1)

    # update analysis
    for analysis in list(analysis_manager.values()):
        analysis.update()
Beispiel #2
0
def update_analysis():
    for analysis in list(analysis_manager.values()):
        analysis.update()
Beispiel #3
0
def update_analysis():
    for analysis in list(analysis_manager.values()):
        analysis.update()