clear spaces from db lol
This commit is contained in:
parent
1dec01c4de
commit
ec6c1eb5a1
1 changed files with 16 additions and 0 deletions
16
clean.py
Executable file
16
clean.py
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import json
|
||||||
|
|
||||||
|
with open('nboard.json', 'r') as file:
|
||||||
|
data = json.load(file)
|
||||||
|
|
||||||
|
print(len(data))
|
||||||
|
|
||||||
|
data = {k:v for k, v in data.items() if v is not " "}
|
||||||
|
|
||||||
|
print(len(data))
|
||||||
|
|
||||||
|
with open('nboard.json', 'w') as file:
|
||||||
|
json.dump(data, file)
|
||||||
|
|
Loading…
Reference in a new issue