Explorar el Código

fix link undefined

Daniel Sheffield hace 1 año
padre
commit
4c6f674b32
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      app/rest/pyapi.py

+ 2 - 1
app/rest/pyapi.py

@@ -145,12 +145,13 @@ def clip():
             content=content,
             disabled=False
         )
+        link = f'{LOCATION}/clip'
         svg = get_qr_code(link if not content or len(content) > 300 else content)
         return template(
             'paste',
             form=form,
             svg=svg,
-            link=f'{LOCATION}/clip',
+            link=link,
             disabled=False,
             download=None
         )