diff --git a/tahrir/templates/admin.mak b/tahrir/templates/admin.mak index aa06672..0ead6b2 100644 --- a/tahrir/templates/admin.mak +++ b/tahrir/templates/admin.mak @@ -26,14 +26,6 @@ - - - - - - - - diff --git a/tahrir/templates/explore.mak b/tahrir/templates/explore.mak index 0d4467c..4cdd41b 100644 --- a/tahrir/templates/explore.mak +++ b/tahrir/templates/explore.mak @@ -87,7 +87,7 @@ diff --git a/tahrir/templates/user.mak b/tahrir/templates/user.mak index 9afce89..7a31ef9 100644 --- a/tahrir/templates/user.mak +++ b/tahrir/templates/user.mak @@ -18,11 +18,9 @@ - % if user.bio: -
-

${user.bio}

-
- % endif +
+

Go to ${user.nickname}'s Fedora Account +

Arrived on ${user.created_on.strftime('%Y-%m-%d')}.

@@ -39,17 +37,6 @@

Not ranked yet.

% endif - % if user.website: -

- Website: - % if user.website.startswith('http'): - ${user.website} - % else: - ${user.website} - % endif -

- % endif -

View user as: JSON, diff --git a/tahrir/views.py b/tahrir/views.py index 48ba01a..a7d8021 100644 --- a/tahrir/views.py +++ b/tahrir/views.py @@ -258,8 +258,6 @@ def admin(request): request.db.add_person( email, nickname=request.POST.get("person-nickname"), - website=request.POST.get("person-website"), - bio=request.POST.get("person-bio"), ) request.session.flash( "You added a person with email %s" % request.POST.get("person-email") @@ -612,10 +610,7 @@ def explore(request): matching_results = ( request.db.get_all_persons() .filter( - ( - (m.Person.nickname.like("%" + search_query + "%")) - | (m.Person.bio.like("%" + search_query + "%")) - ) + (m.Person.nickname.like("%" + search_query + "%")) & (m.Person.opt_out.is_(False)) ) .all()