diff --git a/tornado_json/__init__.py b/tornado_json/__init__.py index 594fcd2..c3f4387 100644 --- a/tornado_json/__init__.py +++ b/tornado_json/__init__.py @@ -5,4 +5,4 @@ # Alternatively, just put the version in a text file or something to avoid # this. -__version__ = '0.10' +__version__ = '0.11' diff --git a/tornado_json/routes.py b/tornado_json/routes.py index 65295cb..8943592 100644 --- a/tornado_json/routes.py +++ b/tornado_json/routes.py @@ -119,7 +119,7 @@ def yield_args(module, cls_name, method_name): # You better believe this is a list comprehension auto_routes = list(chain(*[ - [ + list(set([ # URL, requesthandler tuple ( "/{}/{}{}".format( @@ -136,7 +136,7 @@ def yield_args(module, cls_name, method_name): for method_name in [ "get", "put", "post", "patch", "delete", "head", "options" ] if has_method(module, k, method_name) - ] + ])) # foreach classname, pyclbr.Class in rhs for k, v in rhs.iteritems() # Only add the pair to auto_routes if: