diff --git a/clean.py b/clean.py new file mode 100644 index 0000000..03891f2 --- /dev/null +++ b/clean.py @@ -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