Add clean script

This commit is contained in:
2020-05-03 23:30:22 +00:00
parent e16dee917e
commit 94f4539242
+21
View File
@@ -0,0 +1,21 @@
import shelve
db = shelve.open('t0txt')
new = shelve.open('new')
for k in db.keys():
try:
note = db[k]
except:
print('error', k)
continue
if not note and not isinstance(note, str):
print('bad', k)
continue
if k == 'HVQH':
continue
new[k] = note