Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix key/index bug

  • Loading branch information...
commit 20c252da47dfd488a669d32709420d9b0c678b8b 1 parent 7a8b163
@dustball dustball authored
Showing with 6 additions and 1 deletion.
  1. +5 −0 index.yaml
  2. +1 −1  main.py
View
5 index.yaml
@@ -31,6 +31,11 @@ indexes:
- kind: Event
properties:
- name: status
+ - name: end_time
+
+- kind: Event
+ properties:
+ - name: status
- name: expired
- kind: Event
View
2  main.py
@@ -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():
Please sign in to comment.
Something went wrong with that request. Please try again.