Fix API 🙈

This commit is contained in:
3wc
2021-07-29 11:36:58 +02:00
parent 6963e22933
commit bcd1190f50
4 changed files with 11 additions and 5 deletions

View File

@ -15,7 +15,7 @@ bp = Blueprint("publicapi", __name__, url_prefix="/api")
@bp.route("/capsul/create", methods=["POST"])
@account_required
def capsul_create():
email = session["account"]
email = session["account"][0]
from .console import _create, get_account_balance, get_payments, get_vms
@ -36,6 +36,7 @@ def capsul_create():
request.json['ssh_authorized_key_count'] = 1
id, errors = _create(
email,
vm_sizes,
operating_systems,
public_keys_for_account,