Include num_changes in changeset xml response
authormmd-osm <mmd.osm@gmail.com>
Tue, 14 Aug 2018 08:57:13 +0000 (10:57 +0200)
committermmd-osm <mmd.osm@gmail.com>
Tue, 14 Aug 2018 08:57:13 +0000 (10:57 +0200)
app/models/changeset.rb

index 502637c..1aa1e1f 100644 (file)
@@ -232,6 +232,7 @@ class Changeset < ActiveRecord::Base
     bbox.to_unscaled.add_bounds_to(el1, "_") if bbox.complete?
 
     el1["comments_count"] = comments.length.to_s
+    el1["changes_count"] = num_changes.to_s
 
     if include_discussion
       el2 = XML::Node.new("discussion")