Skip to content

Commit

Permalink
Use tag_key in __convert_tag_string instead of hard coding it as 'tags'.
Browse files Browse the repository at this point in the history
  • Loading branch information
mudge committed Dec 18, 2009
1 parent 26a332b commit 6fcf8d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion delicious.py
Expand Up @@ -325,5 +325,5 @@ def __convert_date_string(self, dict_with_date, date_key='date'):

def __convert_tag_string(self, dict_with_tags, tag_key='tags'):
'''Convert a space-separated tag string to a list of tags.'''
dict_with_tags['tags'] = dict_with_tags['tags'].split(' ')
dict_with_tags[tag_key] = dict_with_tags[tag_key].split(' ')
return dict_with_tags

0 comments on commit 6fcf8d3

Please sign in to comment.