X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/6da11d5333d3a636b7ee9861838e24ae845a3694..f66c502f7256ad38c308f8276542b6978a2545a6:/cookbooks/planet/files/default/replication-bin/replicate-changesets?ds=sidebyside diff --git a/cookbooks/planet/files/default/replication-bin/replicate-changesets b/cookbooks/planet/files/default/replication-bin/replicate-changesets index 443d8ede3..e2d4cc109 100644 --- a/cookbooks/planet/files/default/replication-bin/replicate-changesets +++ b/cookbooks/planet/files/default/replication-bin/replicate-changesets @@ -84,6 +84,7 @@ class Replicator xml['created_at'] = cs.created_at.getutc.xmlschema xml['closed_at'] = cs.closed_at.getutc.xmlschema if cs.closed?(@now) xml['open'] = cs.open?(@now).to_s + xml['num_changes'] = cs.num_changes.to_s res = @conn.exec("select u.id, u.display_name, c.min_lat, c.max_lat, c.min_lon, c.max_lon from users u join changesets c on u.id=c.user_id where c.id=#{cs.id}") xml['user'] = res[0]['display_name']