Ver código fonte

10개 넘어가면 오류 출력

gnote8-0 6 anos atrás
pai
commit
1a58d4627d
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      route/watch_list_name.py

+ 2 - 2
route/watch_list_name.py

@@ -10,7 +10,7 @@ def watch_list_name_2(conn, name):
     curs.execute(db_change("select count(title) from scan where user = ?"), [ip])
     count = curs.fetchall()
     if count and count[0][0] > 9:
-        return redirect('/watch_list')
+        return re_error('/error/28')
 
     curs.execute(db_change("select title from scan where user = ? and title = ?"), [ip, name])
     if curs.fetchall():
@@ -20,4 +20,4 @@ def watch_list_name_2(conn, name):
 
     conn.commit()
 
-    return redirect('/watch_list')
+    return redirect('/watch_list')