clean.py 261 B

1234567891011121314151617
  1. #!/usr/bin/env python3
  2. import json
  3. with open('nboard.json', 'r') as file:
  4. data = json.load(file)
  5. print(len(data))
  6. data = {k:v for k, v in data.items() if v is not " "}
  7. print(len(data))
  8. with open('nboard.json', 'w') as file:
  9. json.dump(data, file)