From 481889c74c3f3d93a97f32c5d6f554415df07398 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Mon, 25 Nov 2024 21:52:07 -0500 Subject: [PATCH] Fix bugs in MessageRange parsing --- lib/nntp/tiny/session.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/nntp/tiny/session.py b/lib/nntp/tiny/session.py index d072149..996a471 100644 --- a/lib/nntp/tiny/session.py +++ b/lib/nntp/tiny/session.py @@ -66,26 +66,26 @@ class MessageRange(): match = __class__.RE_NUM.match(r) if match: obj = __class__() - obj.id = match[1] + obj.id = int(match[1]) return obj match = __class__.RE_RANGE.match(r) if match: obj = __class__() - obj.min = match[1] - obj.max = match[2] + obj.min = int(match[1]) + obj.max = int(match[2]) return obj match = __class__.RE_RANGE_LOWER.match(r) if match: obj = __class__() - obj.min = match[1] + obj.min = int(match[1]) return obj match = __class__.RE_RANGE_UPPER.match(r) if match: obj = __class__() - obj.max = match[1] + obj.max = int(match[1]) return obj class Session():