fix buttons (missing argument to _by_url)

This commit is contained in:
ketralnis
2008-08-27 13:09:43 -07:00
parent 984c6bff51
commit 2717d8e515
2 changed files with 2 additions and 2 deletions

View File

@@ -1035,7 +1035,7 @@ class ApiController(RedditController):
uh = request.get.get('uh', "")
try:
links = Link._by_url(url)
links = Link._by_url(url,None)
except:
links = []

View File

@@ -41,7 +41,7 @@ class ButtonsController(RedditController):
css = nop('css'))
def GET_button_content(self, url, title, css):
try:
links = Link._by_url(url)
links = Link._by_url(url,None)
#find the one with the highest score
l = max(links, key = lambda x: x._score)