Skip to content

Commit

Permalink
Remove unused urlfor filter
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed May 2, 2016
1 parent ab3490c commit dafc7a9
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions hasjob/views/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from sqlalchemy import or_
from sqlalchemy.exc import IntegrityError
from geoip2.errors import AddressNotFoundError
from flask import Markup, request, url_for, g, session
from flask import Markup, request, g, session
from flask.ext.rq import job
from flask.ext.lastuser import signal_user_looked_up
from coaster.utils import uuid1mc
Expand Down Expand Up @@ -597,16 +597,6 @@ def jobpost_location_hierarchy(self):
JobPost.location_hierarchy = property(jobpost_location_hierarchy)


@app.template_filter('urlfor')
def url_from_ob(ob):
if isinstance(ob, JobPost):
return ob.url_for()
elif isinstance(ob, JobType):
return url_for('browse_by_type', name=ob.name)
elif isinstance(ob, JobCategory):
return url_for('browse_by_category', name=ob.name)


def use_timezone():
if g and g.user:
return g.user.tz
Expand Down

0 comments on commit dafc7a9

Please sign in to comment.