1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

display links in the diario entries

This commit is contained in:
Steffo 2020-08-30 01:56:24 +02:00
parent ff6f411e6a
commit ebad99d049

View file

@ -83,7 +83,7 @@ class Diario:
f" spoiler={self.spoiler}>" f" spoiler={self.spoiler}>"
def __str__(self): def __str__(self):
text = f"Riga #{self.diario_id} (salvata" text = f"[url=https://ryg.steffo.eu/#/d/{self.diario_id}]/d/{self.diario_id}[/url] (creata"
if self.creator is not None: if self.creator is not None:
text += f" da {str(self.creator)}" text += f" da {str(self.creator)}"
text += f" il {self.timestamp.strftime('%Y-%m-%d %H:%M')}):\n" text += f" il {self.timestamp.strftime('%Y-%m-%d %H:%M')}):\n"