Exemplo n.º 1
0
def maint_variable_data(dbo):
    try:
        animal.update_all_variable_animal_data(dbo)
    except:
        em = str(sys.exc_info()[0])
        al.error("FAIL: uncaught error running maint_variable_data: %s" % em,
                 "cron.maint_variable_data", dbo, sys.exc_info())
Exemplo n.º 2
0
def maint_animal_figures(dbo):
    try:
        animal.update_all_animal_statuses(dbo)
        animal.update_all_variable_animal_data(dbo)
        animal.maintenance_animal_figures(dbo,
                                          includeMonths=True,
                                          includeAnnual=True)
    except:
        em = str(sys.exc_info()[0])
        al.error("FAIL: uncaught error running maint_animal_figures: %s" % em,
                 "cron.maint_animal_figures", dbo, sys.exc_info())