gdl-888-2 před 5 roky
rodič
revize
2f6408a7fb
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      route/view_read.py

+ 2 - 2
route/view_read.py

@@ -121,7 +121,7 @@ def view_read_2(conn, name):
 
         curs.execute(db_change('' + \
             'select ip, date, leng, send, id from history ' + \
-            'where title = ? and hide != "O" and type = "" order by id desc limit 3' + \
+            'where title = ? and hide != "O" and type = "" order by cast(id as integer) desc limit 3' + \
         ''), [name])
         sql_d = curs.fetchall()
         if sql_d:
@@ -207,4 +207,4 @@ def view_read_2(conn, name):
         imp = [flask.request.args.get('show', name), wiki_set(), custom(), other2([sub, r_date, watch_list])],
         data = div,
         menu = menu
-    )), response_data
+    )), response_data