diff --git a/ibt2.py b/ibt2.py index 4a90a28..f7feccc 100755 --- a/ibt2.py +++ b/ibt2.py @@ -504,10 +504,9 @@ def run(): {'setting': 'server_cookie_secret', 'cookie_secret': cookie_secret}) _days_path = r"/days/?(?P[\d_-]+)?" - _attendees_path = r"/days/(?P[\d_-]+)/groups/(?P[\w\d_\ -]+)/attendees/?(?P[\w\d_\ -]+)?" + _attendees_path = r"/attendees/?(?P[\w\d_-]+)?" _current_user_path = r"/users/current/?" _users_path = r"/users/?(?P[\w\d_-]+)?/?(?P[\w\d_-]+)?/?(?P[\w\d_-]+)?" - _attendees_path = r"/attendees/?(?P[\w\d_-]+)?" application = tornado.web.Application([ (_attendees_path, AttendeesHandler, init_params), (r'/v%s%s' % (API_VERSION, _attendees_path), AttendeesHandler, init_params), diff --git a/monco.py b/monco.py index 34c11ba..f2ce6db 100644 --- a/monco.py +++ b/monco.py @@ -282,4 +282,3 @@ class Monco(object): _id_or_query = {'_id': _id_or_query} _id_or_query = convert(_id_or_query) return db[collection].remove(_id_or_query) - diff --git a/utils.py b/utils.py index 0bdb26c..b1d7107 100644 --- a/utils.py +++ b/utils.py @@ -21,7 +21,6 @@ import string import random import hashlib import datetime -import StringIO from bson.objectid import ObjectId