Commits

Don Park  committed 98ce6b2

bug fix

  • Participants
  • Parent commits e66453e

Comments (0)

Files changed (1)

File sinatra/lib/geomena/couch.rb

       http.get("/geomena/_design/observations/_view/count?#{URI.escape(getparams)}")
     end.body
     rows = JSON.parse(body)["rows"]
-    rows.first["value"]
+    rows.first["value"] if rows.size > 0
   end
 
   def self.get_by_mac(macaddr)