瀏覽代碼

fix link undefined

Daniel Sheffield 1 年之前
父節點
當前提交
4c6f674b32
共有 1 個文件被更改,包括 2 次插入1 次删除
  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
         )