[O] Default to indent none to save space

This commit is contained in:
Hykilpikonna
2021-11-22 15:22:09 -05:00
parent 1c6629e504
commit d9a78baa3d
4 changed files with 10 additions and 4 deletions
+2 -2
View File
@@ -49,7 +49,7 @@ def process_users_popularity(user_dir: str = './data/twitter/user/') -> None:
users.sort(key=lambda x: x.popularity, reverse=True)
# Save data
write(f'{user_dir}/processed/popularity.json', json_stringify(users, indent=None))
write(f'{user_dir}/processed/popularity.json', json_stringify(users))
def load_users_popularity(user_dir: str = './data/twitter/user/') -> list[UserPopularity]:
@@ -110,7 +110,7 @@ def process_tweets(tweets_dir: str = './data/twitter/user-tweets/') -> None:
for t in tweets]
# Save data
write(f'{tweets_dir}/processed/{filename}', json_stringify(p, indent=None))
write(f'{tweets_dir}/processed/{filename}', json_stringify(p))
debug(f'Processed: {filename}')