From 26029f1b1a98c30e0c25c904d885c08609b272e4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 28 Jun 2020 22:35:17 +0100 Subject: [PATCH] Sort following list --- daemon.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/daemon.py b/daemon.py index 7e23d07f..2ef5b341 100644 --- a/daemon.py +++ b/daemon.py @@ -1650,12 +1650,14 @@ class PubServer(BaseHTTPRequestHandler): msg = '' with open(followingFilename, 'r') as followingFile: msg = followingFile.read() - followingList = msg.split('\n').sort() - print('followingList: ' + str(followingList)) + followingList = msg.split('\n') + followingList.sort() if followingList: followingListHtml = '' for followingAddress in followingList: - followingListHtml += '

' + followingAddress + '

' + if followingAddress: + followingListHtml += \ + '

' + followingAddress + '

' followingListHtml += '' msg = followingListHtml self._login_headers('text/html', len(msg), callingDomain)