From 15996e79f79bf10b5b0b20cab6710c12af9b6890 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 22 Jun 2020 18:08:10 +0200 Subject: [PATCH] Stuffy stuff --- royalnet/backpack/stars/api_user_create.py | 2 +- royalnet/backpack/stars/docs.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/royalnet/backpack/stars/api_user_create.py b/royalnet/backpack/stars/api_user_create.py index ca7fd35d..14aecc58 100644 --- a/royalnet/backpack/stars/api_user_create.py +++ b/royalnet/backpack/stars/api_user_create.py @@ -42,9 +42,9 @@ class ApiUserCreateStar(rca.ApiStar): email=email, avatar_url=avatar_url ) + data.session.add(user) user.set_password(password) user.add_alias(self.alchemy, username) - data.session.add(user) await data.session_commit() return user.json() diff --git a/royalnet/backpack/stars/docs.py b/royalnet/backpack/stars/docs.py index 76511c5c..a955326e 100644 --- a/royalnet/backpack/stars/docs.py +++ b/royalnet/backpack/stars/docs.py @@ -7,6 +7,9 @@ from starlette.responses import Response, HTMLResponse from royalnet.version import semantic +backtick = "\u0060" + + class DocsStar(PageStar): path = "/docs"