Merged UI and backend

This commit is contained in:
2018-05-13 03:41:59 +05:30
parent 1c83fd5ace
commit ecb0b26fab

View File

@@ -144,8 +144,11 @@ class MongoUserDao:
def get_user_posts(self, _id):
user = self.get_by_id(_id)
if user is not None:
if 'posts' in user:
return user['posts']
else:
return None
else:
return []