From 4a8caf00628313540c9a0e9d101344a673915b0f Mon Sep 17 00:00:00 2001 From: bai Date: Tue, 16 Jul 2019 23:48:07 -0400 Subject: Arreglado problema con los IDs de los hilos en los reportes --- cgi/weabot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi/weabot.py b/cgi/weabot.py index a02777f..d504409 100755 --- a/cgi/weabot.py +++ b/cgi/weabot.py @@ -898,7 +898,7 @@ class weabot(object): parent_post = get_parent_post(post["parentid"], board["id"]) link = "/%s/read/%s/%s" % (board["dir"], parent_post["timestamp"], postshow) else: - link = "/%s/res/%s.html#%s" % (board["dir"], post["parentid"], post["id"]) + link = "/%s/res/%d.html#%d" % (board["dir"], int(post["parentid"]) or int(post["id"]), int(post["id"])) # insert report t = time.time() -- cgit v1.2.1-18-gbd029