(path)
| 72 | |
| 73 | |
| 74 | def revers_index(path): |
| 75 | data = load_txt_data(path) |
| 76 | res = [] |
| 77 | for item in data: |
| 78 | raw = item.split(',') |
| 79 | doc = raw[0] |
| 80 | try: |
| 81 | abst = raw[1] |
| 82 | except IndexError: |
| 83 | continue |
| 84 | res.append('{},{}'.format(abst, doc)) |
| 85 | save_txt_file(res, path) |
| 86 | |
| 87 | |
| 88 | def filter_data(path): |
nothing calls this directly
no test coverage detected