Pi hace 4 meses
padre
commit
878fea124d
Se han modificado 2 ficheros con 1 adiciones y 2 borrados
  1. 0 1
      rest/pyapi.py
  2. 1 1
      util-sqlpage/clip/form.sql

+ 0 - 1
rest/pyapi.py

@@ -52,7 +52,6 @@ def get_qr():
 def send_static(filename):
     return static_file(filename, root='rest/static')
 
-
 @route('/<route:re:(upload|goto)>/open')
 def _get_clip(route):
     return template('form-open', tool=route, action=f'/{route}', method='get')

+ 1 - 1
util-sqlpage/clip/form.sql

@@ -14,7 +14,7 @@ SELECT 'New' AS title
 SELECT 'Download' AS title
 , 2 AS width
 , 'gray-500' AS color
-, 'https://shandan.one/clip/'||$hash||'?raw=true' AS link
+, 'https://shandan.one/clip/download.sql?hash='||$hash AS link
 ;
 
 SELECT 'form' AS component