From 6c57b91dfa1ec15a3518e57a61dd666250d06a0f Mon Sep 17 00:00:00 2001 From: Nathan Denny Date: Fri, 7 Feb 2025 18:28:16 -0500 Subject: [PATCH] work in progress --- lib/Bastion/Curator.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/Bastion/Curator.py b/lib/Bastion/Curator.py index bcf6f36..bd26d8f 100644 --- a/lib/Bastion/Curator.py +++ b/lib/Bastion/Curator.py @@ -8,7 +8,7 @@ from Bastion.Common import Thing, Boggle, canStruct from Bastion.Model import ARK, isAsset from Bastion.Chronology import Quantim - +from Bastion.Humane import humanize class BLONDE: """ @@ -238,7 +238,15 @@ def __init__(self, head, anchor): self.anchor = anchor def __repr__(self): - return "({}~{})".format(str(self.head), str(self.anchor)) + elapsed = self.head.when.latest - self.anchor.when.earliest + opts = { + 'badge': self.head.badge, + 'genus': self.head.genus, + 'latest': self.head.when.latest, + 'earliest': self.anchor.when.earliest, + 'elapsed': humanize(elapsed) + } + return "({badge}/{genus} @ {latest} - {earliest} ({elapsed}))".format(**opts) @property def genus(self):