X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/069198e84a6f19d6d5dfa35bd7d8812cd74cc129..8e2d506a3967af13932548612be650f8a9db0757:/cookbooks/planet/files/default/replication-bin/replicate-changesets diff --git a/cookbooks/planet/files/default/replication-bin/replicate-changesets b/cookbooks/planet/files/default/replication-bin/replicate-changesets index b472d7952..e2d4cc109 100644 --- a/cookbooks/planet/files/default/replication-bin/replicate-changesets +++ b/cookbooks/planet/files/default/replication-bin/replicate-changesets @@ -84,7 +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 + 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']