Skip to content

Commit

Permalink
fix: add len
Browse files Browse the repository at this point in the history
  • Loading branch information
noeleont committed Nov 14, 2023
1 parent 603cdb4 commit 59d3fad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zotero2readwise/zotero.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __post_init__(self):
et_al = "et al."
max_length = 1024 - len(et_al)
creators_str = ", ".join(self.creators)
if creators_str > max_length:
if len(creators_str) > max_length:
# Reset creators_str and find the first n creators that fit in max_length
creators_str = ""
while self.creators and len(creators_str) < max_length:
Expand Down

0 comments on commit 59d3fad

Please sign in to comment.