~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/console/service.py

ivle.webapp.console.service#restart_console: Don't double-JSON.

Show diffs side-by-side

added added

removed removed

Lines of Context:
142
142
    # Make a JSON object to tell the browser to restart its console client
143
143
    new_key = cjson.encode(
144
144
        {"host": cons.host, "port": cons.port, "magic": cons.magic})
145
 
    json_restart = {
146
 
        "restart": reason,
147
 
        "key": new_key.encode("hex"),
148
 
    }
149
 
    
150
 
    return cjson.encode(json_restart)
 
145
 
 
146
    return {"restart": reason, "key": new_key.encode("hex")}