mirror of
https://github.com/evennia/evennia.git
synced 2026-03-30 20:47:17 +02:00
Fix a tracebac in page due to calling Msg.date_sent instead of Msg.date_created.
This commit is contained in:
parent
91874f5339
commit
73bb293156
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue