summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorroot <root@lalalizard.com>2012-12-24 07:15:33 -0500
committerroot <root@lalalizard.com>2012-12-24 12:06:13 -0500
commit06e586f7b429eb5c4271e5d5e9f4c7e1914f4527 (patch)
tree9847f36071717889ec59c05aeeb77ebe0672e3a3 /backend
parent7deba15052b6e9611525078c0530a444ac8abc99 (diff)
profile_img handler
Diffstat (limited to 'backend')
-rw-r--r--backend/views.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/backend/views.py b/backend/views.py
index 7cfbe98..4ea7b2d 100644
--- a/backend/views.py
+++ b/backend/views.py
@@ -167,6 +167,24 @@ def videos_response_list(videos):
]
retval.append(l)
return retval
+def text_response_list(videos):
+ """ Return list of videos
+ """
+ retval = []
+ for v in videos:
+ s = v.settings
+ if s.get('removed', 0):
+ continue
+ l = [
+ v.id,
+ datetime_to_timestamp(v.datetime),
+ v.user.id,
+ v.user.username,
+ s['text'],
+ v.sjlike_set.count()
+ ]
+ retval.append(l)
+ return retval
def settings_response_str(label, settings):
""" Return string of settings