|
@@ -130,12 +130,12 @@ class CreateLink(Endpoint):
|
|
def html(self, user: str):
|
|
def html(self, user: str):
|
|
url = flask.request.args.get("url", "")
|
|
url = flask.request.args.get("url", "")
|
|
name = flask.request.args.get("name", "")
|
|
name = flask.request.args.get("name", "")
|
|
- defaults = v.AddLinkDefaults(
|
|
|
|
- name=name,
|
|
|
|
- url=url,
|
|
|
|
- )
|
|
|
|
|
|
+ defaults = v.AddLinkDefaults(name=name, url=url,)
|
|
return render(
|
|
return render(
|
|
- "main", v.Page(title="login", content=render("add_link", defaults), user=self.user,)
|
|
|
|
|
|
+ "main",
|
|
|
|
+ v.Page(
|
|
|
|
+ title="login", content=render("add_link", defaults), user=self.user,
|
|
|
|
+ ),
|
|
)
|
|
)
|
|
|
|
|
|
def api_post(self, user: str):
|
|
def api_post(self, user: str):
|