Skip to content

Commit

Permalink
work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
ndenny committed Feb 7, 2025
1 parent 3eb5644 commit 6c57b91
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/Bastion/Curator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 6c57b91

Please sign in to comment.