wandored / cadashboard

0 stars 0 forks source link

purchasing: used concept column on restaurant table to split casual & steakhouse #159

Closed wandored closed 4 months ago

wandored commented 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"))

`