In python 2.7, I was able to set the limit of the last number of rows to be displayed except the exact last one as: results = db(db.answer.author == auth.user.id).select(db.answer.ALL)[-10:-1]
But after switching to python 3.6, i keep getting this error: File "/home/mauricewaka/web2py/gluon/packages/dal/pydal/objects.py", line 2780, in __getitem__ keys = list(row.keys()) AttributeError: 'list' object has no attribute 'keys' How do I overcome this? Regards -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.