Commits

Don Park committed 52d8b3d

last entry by date

Comments (0)

Files changed (1)

sinatra/lib/geomena/couch.rb

     end
   end
 
+  def self.last
+    result = conn do |http|
+      http.get("/geomena/_design/observations/_view/bycreatedat")
+    end.body
+    JSON.parse(result)["rows"]
+  end
+
   def self.log(essid, note)
     log = {:essid => essid, :note => note}
     conn do |http|