Getty Ritter 2 years ago
parent
commit
46d988cfb5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lc/app.py

+ 2 - 2
lc/app.py

@@ -297,13 +297,13 @@ class ServiceWorker(Endpoint):
     def route(self, *args, **kwargs):
         return flask.send_file("../js/serviceWorker.js", mimetype="text/javascript")
 
+
 @endpoint("/add-link")
 class AddLink(Endpoint):
     def html(self):
         if not self.user:
             raise e.LCRedirect("/login")
 
-
         args = flask.request.args.copy()
 
         # Android sets the text field to the url only
@@ -311,7 +311,7 @@ class AddLink(Endpoint):
         text = args.get("text", "")
         if url is None and text.startswith("http"):
             args["url"] = text
-            del args['text']
+            del args["text"]
 
         args = "&".join(f"{key}={value}" for key, value in args.items())