Browse Source

fix link undefined

Daniel Sheffield 1 năm trước cách đây
mục cha
commit
4c6f674b32
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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
         )