Fix some bugs

Change lint.py to print the name of file being linted for easy debugging. Also removed a bug from website\main.py
This commit is contained in:
Rohit Tanwar
2018-04-12 17:46:30 +05:30
parent 0c4e433628
commit 5b7baf43f8
5 changed files with 32 additions and 30 deletions

View File

@ -8,7 +8,7 @@ codeRe = "```\s*python([\s\S]*?)```"
def tagger():
tag_data = open('tag_database').read()
tag_dict = {}
tag_list = tag_data.split('\n')
tag_list = filter(lambda x:x.strip() != '',tag_data.split('\n'))
for tag in tag_list:
category = tag.split(':')[1]
snippet = tag.split(':')[0]