Skip to content
This repository has been archived by the owner on Sep 30, 2019. It is now read-only.

Commit

Permalink
Update routes.py
Browse files Browse the repository at this point in the history
Python 3 support
  • Loading branch information
marquelzikri authored Oct 10, 2019
1 parent 23f193f commit 1335d22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions title_links/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def search_widget(doctype, txt, query=None, searchfield=None, start=0,
else:
title_field = None

print "title_field = {0}".format(title_field)
print("title_field = {0}".format(title_field))
# build from doctype
if txt:
search_fields = ["name"]
Expand Down Expand Up @@ -141,7 +141,7 @@ def get_std_fields_list(meta, key):
def build_for_autosuggest(res):
results = []
for r in res:
print r
print(r)
out = {"value": r[0], "description": ", ".join(unique(cstr(d) for d in r if d)[0:])}
results.append(out)

Expand Down

0 comments on commit 1335d22

Please sign in to comment.