diff --git a/lib/query.rb b/lib/query.rb index f3f3fc5..5865d74 100644 --- a/lib/query.rb +++ b/lib/query.rb @@ -7,6 +7,7 @@ class Query def amount return unless @params[:amount] + @params[:amount].to_f end diff --git a/lib/quote/end_of_day.rb b/lib/quote/end_of_day.rb index a762a8a..6f838de 100644 --- a/lib/quote/end_of_day.rb +++ b/lib/quote/end_of_day.rb @@ -14,6 +14,7 @@ module Quote def cache_key return if not_found? + Digest::MD5.hexdigest(result.keys.first) end diff --git a/lib/quote/interval.rb b/lib/quote/interval.rb index 300abf2..e7a703e 100644 --- a/lib/quote/interval.rb +++ b/lib/quote/interval.rb @@ -15,6 +15,7 @@ module Quote def cache_key return if not_found? + Digest::MD5.hexdigest(result.keys.last) end