From 2c09ea96fa84fb5691a841c04f9a70b0d2844385 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi
Date: Thu, 8 Jun 2023 13:37:04 +0300
Subject: [PATCH 1/1] Fixed issue cross references not using issue IDs
model.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/model.py b/model.py
index 5332999..8c9083d 100644
--- a/model.py
+++ b/model.py
@@ -345,12 +345,12 @@ class Crossref (Post):
None, None, sub_name)
def incoming_entry(self):
x_url = f'/s/{self.sub_name}/{self.id}'
x_url = f'/s/{self.sub_name}/{self.issueid}'
x_icon = '✔︎' if '✔︎' in self.tags else '🐞'
return f'=> {x_url} {x_icon} Mentioned in #{self.issueid}: {self.title}\n{ago_text(self.ts_created)}\n'
def outgoing_entry(self):
x_url = f'/s/{self.sub_name}/{self.id}'
x_url = f'/s/{self.sub_name}/{self.issueid}'
x_icon = '✔︎' if '✔︎' in self.tags else '🐞'
return f'=> {x_url} {x_icon} {INNER_LINK_PREFIX}#{self.issueid}: {self.title}\n'
@@ -1367,7 +1367,6 @@ class Database:
FROM posts
WHERE issueid=?
""", (datetime.datetime.fromtimestamp(seg_post.ts_created),
#seg_post.ts_created,
dst_issueid))
self.commit()
--
2.25.1
text/plain
This content has been proxied by September (ba2dc).