1
0
mirror of https://github.com/satwikkansal/wtfpython synced 2024-11-22 02:54:25 +01:00

Fix an error in the irrelevant code!

Fixes https://github.com/satwikkansal/wtfpython/issues/85
This commit is contained in:
Satwik Kansal 2018-06-19 00:25:34 +05:30
parent 5484680721
commit 07861a045d

View File

@ -80,6 +80,7 @@ with open("add_categories", "r") as f:
}
content.next()
except StopIteration:
pass
for idx, snip in enumerate(snippets):
snippets[idx]["category"] = snips_by_title[snip["title"]]["category"]