Changeset 78
- Timestamp:
- 12/24/10 12:42:19 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pycgibattler/trunk/index.cgi
r77 r78 259 259 260 260 if len(ids) > CONFIG.getint('battle', 'max_entries'): 261 return jsondump({ })261 return jsondump({'result': {}}) 262 262 263 263 try: … … 265 265 data[id_.value] = CharacterManager(id_.value).flatten() 266 266 except: 267 return jsondump({ })268 269 return jsondump( data)270 271 return jsondump( [cm.id() for cm in CharacterManager.list()])267 return jsondump({'result': {}}) 268 269 return jsondump({'result': data}) 270 271 return jsondump({'result': [cm.id() for cm in CharacterManager.list()]}) 272 272 273 273 if 'id' in form:
Note: See TracChangeset
for help on using the changeset viewer.