spelling
This commit is contained in:
parent
8342923def
commit
b540916a53
4
main.py
4
main.py
|
|
@ -1910,11 +1910,11 @@ def unwrapped_toggle_autoswitch(base,quote):
|
|||
if x.config_dict["autoswitch"]:
|
||||
broker.logger.log_this("Autoswitch turned OFF",1,f"{base}/{quote}")
|
||||
x.config_dict["autoswitch"] = False
|
||||
return jsonify({"Success": "Autoswitch it's now OFF"})
|
||||
return jsonify({"Success": "Autoswitch is now OFF"})
|
||||
else:
|
||||
broker.logger.log_this("Autoswitch turned ON",1,f"{base}/{quote}")
|
||||
x.config_dict["autoswitch"] = True
|
||||
return jsonify({"Success": "Autoswitch it's now ON"})
|
||||
return jsonify({"Success": "Autoswitch is now ON"})
|
||||
except Exception as e:
|
||||
broker.logger.log_this(f"Exception while toggling autoswitch: {e}",1,f"{base}{quote}")
|
||||
return jsonify({"Error": "Halp"})
|
||||
|
|
|
|||
Loading…
Reference in New Issue