More API
This commit is contained in:
parent
8547fdeece
commit
63001a7279
9 changed files with 85 additions and 15 deletions
|
|
@ -20,6 +20,11 @@ class Project(object):
|
|||
if self.source is not None:
|
||||
return urlparse(self.source)[1]
|
||||
|
||||
def to_json(self):
|
||||
rv = vars(self).copy()
|
||||
rv['description'] = unicode(rv['description'])
|
||||
return rv
|
||||
|
||||
|
||||
projects = {
|
||||
'websites': [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue