Guest User

Untitled

a guest
Jan 22nd, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. INFO 2012-09-24 01:15:10,182 dev_appserver.py:2967] "POST /reserve/Rogers/1 HTTP/1.1" 302 -
  2.  
  3. a=3
  4. b=3
  5. c=5
  6. d=6
  7. if c<d:
  8. print "c<d"
  9. if a<b:
  10. print "a<b"
  11. elif a==b:
  12. print "a=b"
  13. else:
  14. print "not a<=b"
  15. print "not a b"
  16.  
  17. for courtname in courtnames:
  18. for time in times:
  19. if name == hiddenname:
  20. pass
  21. elif name != hiddenname and hiddenname == "":
  22. #check early and late
  23. if (res-utime)<timedelta(hours=minBefore[1]):
  24. template_values = {'trans':trans,'location_id':location_id}
  25. path = os.path.join(TEMPLATE_DIR, 'unexpected.html')
  26. self.response.out.write(template.render(path,
  27. template_values))
  28. if endtime.endTime<[utime.hour,utime.minute]:
  29. if (res-utime)>timedelta(days=1+maxBefore[0],
  30. hours=maxBefore[1],maxutes=maxBefore[2]):
  31. template_values = {'trans':trans,'location_id':location_id}
  32. path = os.path.join(TEMPLATE_DIR, 'unexpected.html')
  33. self.response.out.write(template.render(path,
  34. template_values))
  35. else:
  36. if (res-utime)>timedelta(days=maxBefore[0],
  37. hours=maxBefore[1],minutes=maxBefore[2]):
  38. template_values = {'trans':trans,'location_id':location_id}
  39. path = os.path.join(TEMPLATE_DIR, 'unexpected.html')
  40. self.response.out.write(template.render(path,
  41. template_values))
  42. tempres.append([time, int(year), int(intMonth),
  43. int(intWeekday), name,hiddenname,court_id,
  44. weekday,weekday_key,int(day),0])
  45. elif name != hiddenname and name!="":
  46. #check early and late
  47. conflict = True
  48. tempres.append([time, int(year), int(intMonth),
  49. int(intWeekday), name,hiddenname,court_id,
  50. weekday,weekday_key,int(day),1])
  51. elif hiddenname != "" and name == "":
  52. conflict = True
  53. tempres.append([time, int(year), int(intMonth),
  54. int(intWeekday), name,hiddenname,court_id,
  55. weekday,weekday_key,int(day),2])
  56. else:
  57. pass
Add Comment
Please, Sign In to add comment