1. Zhang Huangbin
  2. iredadmin-ose

Source

iredadmin-ose / controllers / mysql / admin.py

Diff from to

File controllers/mysql/admin.py

 
 import web
 from libs import languages, iredutils
-from libs.mysql import decorators, admin as adminlib, domain as domainlib, connUtils
+from libs.mysql import decorators, admin as adminlib, domain as domainlib
 
 cfg = web.iredconfig
 session = web.config.get('_session')
         adminLib = adminlib.Admin()
         result = adminLib.listAccounts(cur_page=cur_page)
         if result[0] is True:
-            (total, records) = (result[1], result[2])
+            (total, records) = (result[1]['total'], result[1]['records'])
 
             return web.render(
                 'mysql/admin/list.html',