Scrapyd: return project and version in addversion.json

This commit is contained in:
Pablo Hoffman 2010-11-29 17:22:28 -02:00
parent bbffa59497
commit 46e5d694e6
1 changed files with 2 additions and 1 deletions

View File

@ -46,7 +46,8 @@ class AddVersion(WsResource):
eggstorage = self.root.app.getComponent(IEggStorage)
eggstorage.put(eggf, project, version)
self.root.update_projects()
return {"status": "ok", "spiders": len(spiders)}
return {"status": "ok", "project": project, "version": version, \
"spiders": len(spiders)}
class ListProjects(WsResource):