mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-02-25 01:19:57 -05:00
Updated announce stream formatting
This commit is contained in:
parent
7cf6f74d0c
commit
4a935cb500
@ -218,6 +218,7 @@ class AnnounceStreamEntry(urwid.WidgetWrap):
|
|||||||
date_time_format = "%Y-%m-%d"
|
date_time_format = "%Y-%m-%d"
|
||||||
time_time_format = "%H:%M:%S"
|
time_time_format = "%H:%M:%S"
|
||||||
short_time_format = "%Y-%m-%d %H:%M"
|
short_time_format = "%Y-%m-%d %H:%M"
|
||||||
|
date_only_format = "%Y-%m-%d"
|
||||||
|
|
||||||
timestamp = announce[0]
|
timestamp = announce[0]
|
||||||
source_hash = announce[1]
|
source_hash = announce[1]
|
||||||
@ -232,7 +233,7 @@ class AnnounceStreamEntry(urwid.WidgetWrap):
|
|||||||
if dt.strftime(date_time_format) == dtn.strftime(date_time_format):
|
if dt.strftime(date_time_format) == dtn.strftime(date_time_format):
|
||||||
ts_string = dt.strftime(time_time_format)
|
ts_string = dt.strftime(time_time_format)
|
||||||
else:
|
else:
|
||||||
ts_string = dt.strftime(short_time_format)
|
ts_string = dt.strftime(date_only_format)
|
||||||
|
|
||||||
trust_level = self.app.directory.trust_level(source_hash)
|
trust_level = self.app.directory.trust_level(source_hash)
|
||||||
display_str = self.app.directory.simplest_display_str(source_hash)
|
display_str = self.app.directory.simplest_display_str(source_hash)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user