From 9d70c2f51714c8b5c8d99ff224f8d46eee7ae202 Mon Sep 17 00:00:00 2001 From: TDavis Date: Sat, 30 Mar 2019 02:21:24 -0300 Subject: Mover hilos fix 4 Test 8 --- cgi/manage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cgi/manage.py') diff --git a/cgi/manage.py b/cgi/manage.py index 7545c06..667e4f5 100644 --- a/cgi/manage.py +++ b/cgi/manage.py @@ -478,7 +478,7 @@ def manage(self, path_split): else: tym = post["timestamp"] message += "IP: "+post['ip'] - post['timestamp_formatted'] += ' ID:' + iphash(inet_ntoa(post['ip']), post, tym, board["useid"], False, '', False, False, (board["countrycode"] in ['1', '2'])) + post['timestamp_formatted'] += ' ID:' + iphash(inet_ntoa(long(post['ip'])), post, tym, board["useid"], False, '', False, False, (board["countrycode"] in ['1', '2'])) # insert new post and get its new ID new_id = post.insert() @@ -1708,7 +1708,7 @@ def manage(self, path_split): if '.' in self.formdata['ip']: ip = self.formdata['ip'] else: - ip = inet_ntoa(self.formdata['ip']) + ip = inet_ntoa(long(self.formdata['ip'])) template_filename = "ipshow.html" template_values = {"mode": 1, "ip": ip, "host": getHost(ip), "country": getCountry(ip), "tor": addressIsTor(ip), "posts": posts} logAction(staff_account['username'], "ipshow on {}".format(ip)) -- cgit v1.2.1-18-gbd029