Guest User

Untitled

a guest
Aug 14th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. schedules = {
  2. "employees": {
  3. "1":{
  4. "2018":{
  5. "aug":{
  6. "1": {"day": 1, "start": "08:00h"},
  7. "2": {"day": 1, "start": "08:00h"}
  8. },
  9. "sep":{
  10. "1": {"day": 1, "start": "08:00h"},
  11. "2": {"day": 1, "start": "08:00h"}
  12. }
  13. }
  14. }
  15. }
  16. }
  17.  
  18. sel_schedule = {}
  19. for employees, employee in schedules.items():
  20. for year, month in employee.items():
  21. if month == request.args.get("months"):
  22. sel_schedule = sel_schedule.update(month)
  23. return render_template("scheduleinfo.html", sched = sel_schedule)
Add Comment
Please, Sign In to add comment