alfred.py: use gzip (requires alfred-json v0.2)

This commit is contained in:
Nils Schneider 2014-07-05 20:23:06 +02:00
parent 9f546be0c7
commit 263dd4ceff

View file

@ -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():