style: minor tweaks

This commit is contained in:
Eneko Illarramendi
2020-04-21 23:13:37 +02:00
parent 93e51a7398
commit efbba20872
7 changed files with 30 additions and 13 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ def api_link_retrieve(link_id):
"is_unique": {"type": "boolean", "required": True},
}
)
def api_link_create(link_id=None):
def api_link_create_or_update(link_id=None):
if g.data["max_withdrawable"] < g.data["min_withdrawable"]:
return jsonify({"message": "`max_withdrawable` needs to be at least `min_withdrawable`."}), Status.BAD_REQUEST