Closed wandored closed 4 months ago
` if form3.submit3.data and form3.validate(): session["date_selected"] = fiscal_dates["start_day"] data = form3.stores.data session["store_list"] = tuple([x.id for x in data]) if 98 in session["store_list"] and 99 in session["store_list"]: session["store_list"] = tuple( [19, 9, 4, 11, 17, 16, 10, 5, 18, 12, 14, 3, 6, 15, 13] ) elif 99 in session["store_list"]: session["store_list"] = tuple([19, 9, 4, 11, 17, 16]) elif 98 in session["store_list"]: session["store_list"] = tuple([10, 5, 18, 12, 14, 3, 6, 15, 13]) return redirect(url_for("purchasing_blueprint.purchasing"))
`
` if form3.submit3.data and form3.validate(): session["date_selected"] = fiscal_dates["start_day"] data = form3.stores.data session["store_list"] = tuple([x.id for x in data]) if 98 in session["store_list"] and 99 in session["store_list"]: session["store_list"] = tuple( [19, 9, 4, 11, 17, 16, 10, 5, 18, 12, 14, 3, 6, 15, 13] ) elif 99 in session["store_list"]: session["store_list"] = tuple([19, 9, 4, 11, 17, 16]) elif 98 in session["store_list"]: session["store_list"] = tuple([10, 5, 18, 12, 14, 3, 6, 15, 13]) return redirect(url_for("purchasing_blueprint.purchasing"))
`