Skip to content

Commit

Permalink
py3: fix published workflows grid
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek authored and nsoranzo committed Jul 5, 2018
1 parent 09e39e9 commit ea44034
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions lib/galaxy/web/framework/helpers/grids.py
Expand Up @@ -579,6 +579,8 @@ def get_value(self, trans, grid, item):
else:
ave_item_rating = item.average_rating
num_ratings = 2 # just used for pluralization
if not ave_item_rating:
ave_item_rating = 0
return trans.fill_template("tool_shed_rating.mako",
ave_item_rating=ave_item_rating,
num_ratings=num_ratings,
Expand Down
7 changes: 4 additions & 3 deletions templates/tagging_common.mako
Expand Up @@ -2,9 +2,10 @@
from cgi import escape
from random import random
from math import floor
import six
from galaxy.model import Tag, ItemTagAssociation
from galaxy.web.framework.helpers import iff
import six
from galaxy.util import unicodify
%>

## Render a tagging element if there is a tagged_item.
Expand Down Expand Up @@ -53,9 +54,9 @@
## Convert tag name, value to unicode.
if isinstance( tag_name, str ):
tag_name = unicode( escape( tag_name ), 'utf-8' )
tag_name = unicodify( escape( tag_name ) )
if tag_value:
tag_value = unicode( escape( tag_value ), 'utf-8' )
tag_value = unicodify( escape( tag_value ) )
if tag_value:
tag_str = tag_name + ":" + tag_value
else:
Expand Down

0 comments on commit ea44034

Please sign in to comment.