Permalink
Browse files

Fix key/index bug

  • Loading branch information...
1 parent 7a8b163 commit 20c252da47dfd488a669d32709420d9b0c678b8b @dustball dustball committed Feb 9, 2011
Showing with 6 additions and 1 deletion.
  1. +5 −0 index.yaml
  2. +1 −1 main.py
View
@@ -31,6 +31,11 @@ indexes:
- kind: Event
properties:
- name: status
+ - name: end_time
+
+- kind: Event
+ properties:
+ - name: status
- name: expired
- kind: Event
View
@@ -163,7 +163,7 @@ def post(self, id):
self.request.get('end_time_hour'),
self.request.get('end_time_minute'),
self.request.get('end_time_ampm')), '%Y-%m-%d %I:%M %p')
- conflicts = Event.check_conflict(start_time,end_time,self.request.get_all('rooms'), id)
+ conflicts = Event.check_conflict(start_time,end_time,self.request.get_all('rooms'), int(id))
if conflicts:
raise ValueError('Room conflict detected')
if not self.request.get('estimated_size').isdigit():

0 comments on commit 20c252d

Please sign in to comment.