Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def index():
- json_file = str(os.getcwd()) + "\\static\\data.json"
- with open(json_file, 'r+') as file:
- json_data = json.load(file)
- return render_template('test.html', name="Hot Rack", json_data=json_data, days_of_week = json_data.keys(), return_day_value = day_values())
- def day_values(day):
- return json_data[day]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement