From fecc14c3bf4805c92d9dfbdfdb2610bfb3106ae7 Mon Sep 17 00:00:00 2001 From: Kevin Ngo Date: Thu, 26 Jul 2012 17:10:12 -0700 Subject: [PATCH] fix decimal float/str error on dev --- mkt/stats/search.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mkt/stats/search.py b/mkt/stats/search.py index 77ce3f92ac..d32130b098 100644 --- a/mkt/stats/search.py +++ b/mkt/stats/search.py @@ -224,7 +224,8 @@ def cut(revenue): """ Takes away Marketplace's cut from developers' revenue. """ - return Decimal(str(round(Decimal(revenue) * Decimal(MKT_CUT), 2))) + return Decimal(str(round(Decimal(str(revenue)) * + Decimal(str(MKT_CUT)), 2))) def handle_kwargs(q, field, kwargs, join_field=None):