alfred.py: use gzip (requires alfred-json v0.2)
This commit is contained in:
parent
9f546be0c7
commit
263dd4ceff
|
@ -7,7 +7,7 @@ class alfred:
|
||||||
self.request_data_type = request_data_type
|
self.request_data_type = request_data_type
|
||||||
|
|
||||||
def aliases(self):
|
def aliases(self):
|
||||||
output = subprocess.check_output(["alfred-json","-r",str(self.request_data_type),"-f","json"])
|
output = subprocess.check_output(["alfred-json","-r",str(self.request_data_type),"-f","json","-z"])
|
||||||
alfred_data = json.loads(output.decode("utf-8"))
|
alfred_data = json.loads(output.decode("utf-8"))
|
||||||
alias = {}
|
alias = {}
|
||||||
for mac,node in alfred_data.items():
|
for mac,node in alfred_data.items():
|
||||||
|
|
Loading…
Reference in a new issue