core: remove render module
This commit is contained in:
parent
a3d86e7a44
commit
7f57950478
@ -4,7 +4,7 @@ import runpy
|
|||||||
import sys
|
import sys
|
||||||
import contextlib
|
import contextlib
|
||||||
|
|
||||||
from i3pystatus.core.render import render_json
|
from i3pystatus.core.util import render_json
|
||||||
|
|
||||||
SEARCHPATH = (
|
SEARCHPATH = (
|
||||||
"~/.i3pystatus.py",
|
"~/.i3pystatus.py",
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
|
|
||||||
def render_json(json):
|
|
||||||
if not json.get("full_text", ""):
|
|
||||||
return ""
|
|
||||||
|
|
||||||
return json["full_text"]
|
|
@ -270,3 +270,10 @@ class TimeWrapper:
|
|||||||
H="%02d" % h, M="%02d" % m, S="%02d" % s,
|
H="%02d" % h, M="%02d" % m, S="%02d" % s,
|
||||||
l=l, L=L,
|
l=l, L=L,
|
||||||
).strip()
|
).strip()
|
||||||
|
|
||||||
|
|
||||||
|
def render_json(json):
|
||||||
|
if not json.get("full_text", ""):
|
||||||
|
return ""
|
||||||
|
|
||||||
|
return json["full_text"]
|
||||||
|
Loading…
Reference in New Issue
Block a user