Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
danielecook committed Jul 2, 2015
2 parents e88f5e5 + d49ae33 commit 61a36c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gist.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ def main(wf):
tag_set = []
lang_set = []
for gist in gists:
# fails if no description. to fix:
if not gist["description"]:
gist["description"]=''
tags = list(set([x.replace("#","") for x in gist["description"].split(" ") if x.startswith("#")]))
gist["tags"] = tags
tag_set.extend(tags)
Expand Down

0 comments on commit 61a36c9

Please sign in to comment.