Permalink
Browse files

pretty print metadata.json

  • Loading branch information...
1 parent 22da3e1 commit 9d8c90c1aaa077681ed6df00b3d61c87aabde18c Dane Springmeyer committed May 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mbutil/util.py
View
@@ -170,7 +170,7 @@ def mbtiles_to_disk(mbtiles_file, directory_path):
cur = con.cursor()
os.mkdir("%s" % directory_path)
metadata = dict(con.execute('select name, value from metadata;').fetchall())
- json.dump(metadata, open('%s/metadata.json' % directory_path, 'w'))
+ json.dump(metadata, open('%s/metadata.json' % directory_path, 'w'),indent=4)
count = con.execute('select count(zoom_level) from tiles;').fetchone()[0]
done = 0
msg =''

0 comments on commit 9d8c90c

Please sign in to comment.