From b2a07a52982ea3d3e38a20ea1c75dca4a1b7b859 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 6 Oct 2020 21:26:25 +0100 Subject: [PATCH] unvote --- daemon.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/daemon.py b/daemon.py index b9b84952..06af3595 100644 --- a/daemon.py +++ b/daemon.py @@ -4668,7 +4668,8 @@ class PubServer(BaseHTTPRequestHandler): """Vote for a newswire item """ originPathStr = path.split('/newswirevote=')[0] - dateStr = path.split('/newswirevote=')[1].replace('T', ' ') + '+00:00' + dateStr = \ + path.split('/newswirevote=')[1].replace('T', ' ') + '+00:00' nickname = originPathStr.split('/users/')[1] if '/' in nickname: nickname = nickname.split('/')[0] @@ -4706,8 +4707,9 @@ class PubServer(BaseHTTPRequestHandler): newswire: {}): """Remove vote for a newswire item """ - originPathStr = path.split('/newswirevote=')[0] - dateStr = path.split('/newswirevote=')[1].replace('T', ' ') + '+00:00' + originPathStr = path.split('/newswireunvote=')[0] + dateStr = \ + path.split('/newswireunvote=')[1].replace('T', ' ') + '+00:00' nickname = originPathStr.split('/users/')[1] if '/' in nickname: nickname = nickname.split('/')[0]