From 59d3fadfe6a730deb86f76df486fcf54d3138aab Mon Sep 17 00:00:00 2001 From: Noe Thalheim <2394624+noeleont@users.noreply.github.com> Date: Tue, 14 Nov 2023 08:09:31 +0000 Subject: [PATCH] fix: add `len` --- zotero2readwise/zotero.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zotero2readwise/zotero.py b/zotero2readwise/zotero.py index f4a9726..54e11e8 100644 --- a/zotero2readwise/zotero.py +++ b/zotero2readwise/zotero.py @@ -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: