Browse Source

버그 수정

ect (or 2du) 8 năm trước cách đây
mục cha
commit
f2c53a9d8e
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  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('')