2 new commits in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/cfb18b939f74/ Changeset: cfb18b939f74 Branch: next-stable User: dan Date: 2013-03-22 19:23:24 Summary: Fix for average_rating in repository_review. Affected #: 1 file diff -r fc236ecff8ecd8864dee797e9a70ec800e63948d -r cfb18b939f74aaa97c277e172aee5a8e0f24b55e lib/galaxy/webapps/tool_shed/controllers/repository_review.py --- a/lib/galaxy/webapps/tool_shed/controllers/repository_review.py +++ b/lib/galaxy/webapps/tool_shed/controllers/repository_review.py @@ -320,7 +320,8 @@ trans.model.ComponentReview.table.c.deleted == False, trans.model.ComponentReview.table.c.approved != trans.model.ComponentReview.approved_states.NA ) ) \ .scalar() - review.rating = int( average_rating ) + if average_rating is not None: + review.rating = int( average_rating ) trans.sa_session.add( review ) trans.sa_session.flush() # Update the information in components_dict. https://bitbucket.org/galaxy/galaxy-central/commits/b45e7e2cf125/ Changeset: b45e7e2cf125 User: dan Date: 2013-03-22 19:23:24 Summary: Fix for average_rating in repository_review. Affected #: 1 file diff -r c923439d8226f292160faf04b1c66a6baa2450af -r b45e7e2cf125642efcbbcb112778a44f64de4ec2 lib/galaxy/webapps/tool_shed/controllers/repository_review.py --- a/lib/galaxy/webapps/tool_shed/controllers/repository_review.py +++ b/lib/galaxy/webapps/tool_shed/controllers/repository_review.py @@ -320,7 +320,8 @@ trans.model.ComponentReview.table.c.deleted == False, trans.model.ComponentReview.table.c.approved != trans.model.ComponentReview.approved_states.NA ) ) \ .scalar() - review.rating = int( average_rating ) + if average_rating is not None: + review.rating = int( average_rating ) trans.sa_session.add( review ) trans.sa_session.flush() # Update the information in components_dict. Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.