소스 검색

버그 수정

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('')