jayvdb added a comment.
if rest[:length] > start and rest[:length] <= end:
probably should be
if rest[:length] >= start and rest[:length] <= end:
TASK DETAIL https://phabricator.wikimedia.org/T97887
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb Cc: jayvdb, XZise, Xqt, Aklapper, Anshoe, pywikipedia-bugs