Permalink
Browse files

Increate number of nodes showing on my nodes page.

  • Loading branch information...
1 parent 51df00c commit 9ddb6ace22d5fb27fcbc13c89628ec2a6f8ffbc1 @livid committed Dec 15, 2011
Showing with 4 additions and 4 deletions.
  1. +3 −3 my.py
  2. +1 −1 tpl/feed/index.xml
View
@@ -48,10 +48,10 @@ def get(self):
template_values['rnd'] = random.randrange(1, 100)
if member.favorited_nodes > 0:
template_values['has_nodes'] = True
- q = db.GqlQuery("SELECT * FROM NodeBookmark WHERE member = :1 ORDER BY created DESC LIMIT 0,10", member)
+ q = db.GqlQuery("SELECT * FROM NodeBookmark WHERE member = :1 ORDER BY created DESC LIMIT 0,15", member)
template_values['column_1'] = q
- if member.favorited_nodes > 10:
- q2 = db.GqlQuery("SELECT * FROM NodeBookmark WHERE member = :1 ORDER BY created DESC LIMIT 10,10", member)
+ if member.favorited_nodes > 15:
+ q2 = db.GqlQuery("SELECT * FROM NodeBookmark WHERE member = :1 ORDER BY created DESC LIMIT 15,15", member)
template_values['column_2'] = q2
else:
template_values['has_nodes'] = False
View
@@ -18,7 +18,7 @@
<uri>http://{{ site_domain }}/member/{{ topic.member.name }}</uri>
</author>
<content type="html" xml:base="http://{{ site_domain }}/" xml:lang="en"><![CDATA[
- {{ topic.content|escape|imgly|mentions|urlize|linebreaksbr }}
+ {{ topic.content|escape|youtube|youku|sinaimg|imgly|mentions|urlize|linebreaksbr }}
]]></content>
</entry>{% endfor %}
</feed>

0 comments on commit 9ddb6ac

Please sign in to comment.