def fin(): config = getattr(request, '_funcargs')['config'] db_steps = GkrDbSteps(config) http_steps = GkrHttpSteps(config) params = {'wait_max_advance': wait_max_advance_old} db_steps.update(Standards, Standards.id == 1, params) days_params = { 'finish_advance_date': (datetime.now() + timedelta(days=2)).strftime('%Y-%m-%d') } db_steps.update(Department, Department is not None, days_params) simf_params = { 'finish_advance_date': (datetime.now() - timedelta(days=1)).strftime('%Y-%m-%d') } db_steps.update(Department, Department.id == 75, simf_params) http_steps.renew_queue()
def setup(request): config = getattr(request, '_funcargs')['config'] db_steps = GkrDbSteps(config) params = {'next_opening_date': next_opening_date.strftime('%Y-%m-%d')} db_steps.update(Standards, Standards.id == 1, params)