diff options
| author | root <root@lalalizard.com> | 2012-12-16 14:06:57 -0500 |
|---|---|---|
| committer | root <root@lalalizard.com> | 2012-12-16 14:06:57 -0500 |
| commit | c8c18b44a9c18fa47c00efb8026931f6f84f68e6 (patch) | |
| tree | a487b4cbf3edbab2afd06848b461c175444fa407 | |
| parent | 6ad83b49f3310aa4a3641ad5589d766a24fe6273 (diff) | |
fix calendar videos likes
| -rw-r--r-- | backend/views.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/backend/views.py b/backend/views.py index 803d97c..556d9b2 100644 --- a/backend/views.py +++ b/backend/views.py @@ -137,13 +137,14 @@ def videos_response_str(videos): s = v.settings if s.get('removed', 0): continue - out += u"VIDEO\t%s\t%s\t%s\t%s\t%s\t%s\n" % ( + out += u"VIDEO\t%s\t%s\t%s\t%s\t%s\t%s\t%d\n" % ( str(v.id), str(datetime_to_timestamp(v.datetime)), str(v.user.id), v.user.username, s['url'], - s['title'] + s['title'], + v.sjlike_set.count() ) return out |
