瀏覽代碼

버그 수정

ect (or 2du) 8 年之前
父節點
當前提交
f2c53a9d8e
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      app.py

+ 3 - 3
app.py

@@ -3350,9 +3350,9 @@ def views(name = None):
 @route('/robots.txt')
 def random():
     curs.execute("select data from other where name = 'robot'")
-    d = curs.fetchall()
-    if(d):
-        return('<pre>' + d[0][0] + '</pre>')
+    data = curs.fetchall()
+    if(data):
+        return(data[0][0])
     else:
         return('')