ect (or 2du) 8 лет назад
Родитель
Сommit
f2c53a9d8e
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      app.py

+ 3 - 3
app.py

@@ -3350,9 +3350,9 @@ def views(name = None):
 @route('/robots.txt')
 @route('/robots.txt')
 def random():
 def random():
     curs.execute("select data from other where name = 'robot'")
     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:
     else:
         return('')
         return('')