mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -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)
|
_, flags = self._expr_idx_filter(flags)
|
||||||
|
|
||||||
a = "\033[0;36m{}:\033[1;30m{}"
|
ft = "\033[0;32m{}{:.0}"
|
||||||
a = [a.format(k, v) for k, v in sorted(flags.items())]
|
ff = "\033[0;35m{}{:.0}"
|
||||||
self.log(" ".join(a) + "\033[0m")
|
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 = {}
|
reg = {}
|
||||||
path = os.path.join(ptop, ".hist", "up2k.snap")
|
path = os.path.join(ptop, ".hist", "up2k.snap")
|
||||||
|
|
Loading…
Reference in a new issue