Merge pull request #46 from jiahaoliang/patch-1

Change id type to make it consistent
This commit is contained in:
Ryan Petrello 2016-02-29 09:30:50 -05:00
commit ce728f4878
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ in pecan):
# HTTP POST /
@index.when(method='POST', template='json')
def index_POST(self, **kw):
id_ = len(BOOKS)
id_ = str(len(BOOKS))
BOOKS[id_] = kw['name']
return dict(id=id_, name=kw['name'])