summaryrefslogtreecommitdiff
path: root/wikibania/ban
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2014-10-25 13:30:50 +0200
committerPacien TRAN-GIRARD2014-10-25 13:30:50 +0200
commit5d341830957fac505b9b4ad4120a95a844c4b3f2 (patch)
treea026fb345734f9dd3afbc53765bb528319a0acb5 /wikibania/ban
parentface00188207d4f07c9f4d33e9b6a2e41db9f11c (diff)
downloadwikistats-5d341830957fac505b9b4ad4120a95a844c4b3f2.tar.gz
Indent JSON data dumps
Diffstat (limited to 'wikibania/ban')
-rw-r--r--wikibania/ban/BanDB.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wikibania/ban/BanDB.py b/wikibania/ban/BanDB.py
index e83aa3c..e0b691f 100644
--- a/wikibania/ban/BanDB.py
+++ b/wikibania/ban/BanDB.py
@@ -29,7 +29,7 @@ class BanDB:
29 def dump_file(self, file_name): 29 def dump_file(self, file_name):
30 with open(file_name, "w") as file: 30 with open(file_name, "w") as file:
31 ban_list = self.dump() 31 ban_list = self.dump()
32 json.dump(ban_list, file) 32 json.dump(ban_list, file, indent="\t")
33 33
34 def fetch(self, nb_samples, query_limit=500, continue_token=None): 34 def fetch(self, nb_samples, query_limit=500, continue_token=None):
35 fetch = min(nb_samples, query_limit) 35 fetch = min(nb_samples, query_limit)