We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a6f9e5 commit eb4f866Copy full SHA for eb4f866
1 file changed
can/io/sqlite.py
@@ -54,7 +54,7 @@ def __iter__(self):
54
def __len__(self):
55
# this might not run in constant time
56
result = self.cursor.execute("SELECT COUNT(*) FROM messages")
57
- return abs(int(result.fetchone()[0]))
+ return int(result.fetchone()[0])
58
59
def read_all(self):
60
"""Fetches all messages in the database."""
0 commit comments