Skip to content

Commit 9409e77

Browse files
committed
fix: get back last updated time to msgs
1 parent 8ca1515 commit 9409e77

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

app/viewer/views/playerview/player.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,3 @@ var playerTemplate *template.Template
175175
func init() {
176176
playerTemplate = utils.TmpInit(playerMarkup)
177177
}
178-
179-
type TemplateRendrerPlayerInput struct {
180-
Header string
181-
LastUpdated string
182-
Players []player.Player
183-
TableName string
184-
}

app/viewer/views/view_msg.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (m Msg) Len() int {
4040

4141
func (v *Msg) Render() string {
4242
var content strings.Builder
43-
content.WriteString(string(v.ViewEnumeratedID) + "\n")
43+
content.WriteString(string(v.ViewEnumeratedID) + fmt.Sprintf(" (last updated: %s)", time.Now().String()) + "\n")
4444
content.WriteString(string(v.ViewBeginning))
4545
for _, record := range v.Records {
4646
content.WriteString(string(*record))

0 commit comments

Comments
 (0)