Parcourir la source

버그 수정

ect (or 2du) il y a 8 ans
Parent
commit
f2c53a9d8e
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  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('')