alfred.py: use gzip (requires alfred-json v0.2)
parent
9f546be0c7
commit
263dd4ceff
|
@ -7,7 +7,7 @@ class alfred:
|
|||
self.request_data_type = request_data_type
|
||||
|
||||
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"))
|
||||
alias = {}
|
||||
for mac,node in alfred_data.items():
|
||||
|
|
Loading…
Reference in New Issue