From 73bb293156708f2cc19174c47adc5ef0fdd84437 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 2 Oct 2016 14:15:18 +0200 Subject: [PATCH] Fix a tracebac in page due to calling Msg.date_sent instead of Msg.date_created. --- evennia/commands/default/comms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evennia/commands/default/comms.py b/evennia/commands/default/comms.py index 41ccbacb0a..5e5827049f 100644 --- a/evennia/commands/default/comms.py +++ b/evennia/commands/default/comms.py @@ -707,7 +707,7 @@ class CmdPage(COMMAND_DEFAULT_CLASS): if not self.args or not self.rhs: pages = pages_we_sent + pages_we_got - pages.sort(lambda x, y: cmp(x.date_sent, y.date_sent)) + pages.sort(lambda x, y: cmp(x.date_created, y.date_created)) number = 5 if self.args: @@ -723,7 +723,7 @@ class CmdPage(COMMAND_DEFAULT_CLASS): lastpages = pages template = "{w%s{n {c%s{n to {c%s{n: %s" lastpages = "\n ".join(template % - (utils.datetime_format(page.date_sent), + (utils.datetime_format(page.date_created), ",".join(obj.key for obj in page.senders), "{n,{c ".join([obj.name for obj in page.receivers]), page.message) for page in lastpages)