Permalink
Browse files

Increase left column size, rename variable, fix date threshold change…

…d for testing.
  • Loading branch information...
1 parent 539b8fc commit 3bd5d0a3530e55749792ca4db768eba03867f3f5 @kushal committed Jan 10, 2011
Showing with 9 additions and 9 deletions.
  1. +7 −7 main.py
  2. +1 −1 templates/tag.html
  3. +1 −1 templates/user.html
View
14 main.py
@@ -87,12 +87,12 @@ class FollowHandler(BaseHandler):
@authenticated
def get(self):
user = self.get_user()
- tag = self.request.get('tag')
+ desired_tag = self.request.get('tag')
desired_user = self.request.get('user')
continue_url = self.request.get('continue')
- if tag and (tag not in user.tags_following):
- user.tags_following.append(tag)
+ if desired_tag and (desired_tag not in user.tags_following):
+ user.tags_following.append(desired_tag)
user.put()
if desired_user and (desired_user not in user.following):
user.following.append(desired_user)
@@ -106,12 +106,12 @@ class UnfollowHandler(BaseHandler):
@authenticated
def get(self):
user = self.get_user()
- tag = self.request.get('tag')
+ desired_tag = self.request.get('tag')
desired_user = self.request.get('user')
continue_url = self.request.get('continue')
- if tag and (tag in user.tags_following):
- user.tags_following.remove(tag)
+ if desired_tag and (desired_tag in user.tags_following):
+ user.tags_following.remove(desired_tag)
user.put()
if desired_user and (desired_user in user.following):
user.following.remove(desired_user)
@@ -125,7 +125,7 @@ class TagHandler(BaseHandler):
@authenticated
def get(self, tag):
user = self.get_user()
- d = date_for_new_snippet()
+ d = date_for_retrieval()
all_snippets = Snippet.all().filter("date =", d).fetch(500)
if (tag != 'all'):
all_snippets = [s for s in all_snippets if tag in s.user.tags]
View
@@ -2,7 +2,7 @@
{% block body %}
- <div style="float: left; width: 200px">
+ <div style="float: left; width: 300px">
<h2>{{ tag }}</h2>
{% if following %}
View
@@ -2,7 +2,7 @@
{% block body %}
- <div style="float: left; width: 200px">
+ <div style="float: left; width: 300px">
<h2>{{ user.email }}</h2>
{% if following %}

0 comments on commit 3bd5d0a

Please sign in to comment.