mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
better volflags presentation
This commit is contained in:
parent
e70c74a3b5
commit
c6c0eeb0ff
|
@ -225,9 +225,14 @@ class Up2k(object):
|
|||
|
||||
_, flags = self._expr_idx_filter(flags)
|
||||
|
||||
a = "\033[0;36m{}:\033[1;30m{}"
|
||||
a = [a.format(k, v) for k, v in sorted(flags.items())]
|
||||
self.log(" ".join(a) + "\033[0m")
|
||||
ft = "\033[0;32m{}{:.0}"
|
||||
ff = "\033[0;35m{}{:.0}"
|
||||
fv = "\033[0;36m{}:\033[1;30m{}"
|
||||
a = [
|
||||
(ft if v is True else ff if v is False else fv).format(k, str(v))
|
||||
for k, v in flags.items()
|
||||
]
|
||||
self.log(" ".join(sorted(a)) + "\033[0m")
|
||||
|
||||
reg = {}
|
||||
path = os.path.join(ptop, ".hist", "up2k.snap")
|
||||
|
|
Loading…
Reference in a new issue