Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 727d47e

Browse files
Richard Wimberskýporn
authored andcommitted
fix TypeError: unorderable types: str() > int() in python3
1 parent 9ea60a4 commit 727d47e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quickbooks/mixins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class QuickbooksPdfDownloadable(object):
163163
qbo_object_name = ""
164164

165165
def download_pdf(self, qb=None):
166-
if self.Id and self.Id > 0 and qb is not None:
166+
if self.Id and int(self.Id) > 0 and qb is not None:
167167
return qb.download_pdf(self.qbo_object_name, self.Id)
168168
else:
169169
raise QuickbooksException(

0 commit comments

Comments
 (0)