1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-14 06:11:16 +00:00

[api2] Improve api for user avatar and add for group avatar

This commit is contained in:
poetwang
2014-04-13 01:37:04 +08:00
parent 6f0c5b97f4
commit 0cf6994d29
5 changed files with 66 additions and 13 deletions

View File

@@ -283,7 +283,9 @@ def get_group_msgs(groupid, page, username):
return group_msgs
def get_timetamp(msgtimestamp):
def get_timestamp(msgtimestamp):
if not msgtimestamp:
return 0
timestamp = int(time.mktime(msgtimestamp.timetuple()))
return timestamp