Notes is the last csv field

merge-requests/30/head
Bob Mottram 2022-11-22 09:47:54 +00:00
parent 077ff265d7
commit 1a74211625
1 changed files with 3 additions and 2 deletions

View File

@ -64,9 +64,10 @@ def _update_import_following(base_dir: str,
if ',' in line:
fields = line.split(',')
line = fields[0].strip()
if len(fields) >= 3:
notes = fields[2]
if len(fields) >= 5:
notes = fields[4]
if line.startswith('#'):
# comment
continue
following_nickname = get_nickname_from_actor(line)
if not following_nickname: