Skip to content

Commit

Permalink
OD-1727: Allow for spaces in tag lists after commas (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
hlieberman authored Oct 30, 2023
1 parent 57fe058 commit f4258ed
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions efiction/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,12 @@ def _convert_story_tag_table(self, table_name, old_tags):

def _convert_story_tags(self, old_story):
old_tags = {
'rating': key_find('rid', old_story, '').split(','),
'categories': key_find('catid', old_story, '').split(','),
'warnings': key_find('wid', old_story, '').split(','),
'classes': key_find('classes', old_story, '').split(','),
'genres': key_find('gid', old_story, '').split(','),
'characters': key_find('charid', old_story, '').split(',')
'rating': [t.strip() for t in key_find('rid', old_story, '').split(',')],
'categories': [t.strip() for t in key_find('catid', old_story, '').split(',')],
'warnings': [t.strip() for t in key_find('wid', old_story, '').split(',')],
'classes': [t.strip() for t in key_find('classes', old_story, '').split(',')],
'genres': [t.strip() for t in key_find('gid', old_story, '').split(',')],
'characters': [t.strip() for t in key_find('charid', old_story, '').split(',')],
}

new_tags = {}
Expand Down

0 comments on commit f4258ed

Please sign in to comment.