From 49d16ecd5872eaab289d2ba4b1f97153914d4bb2 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 1 Jun 2023 15:12:01 +0800 Subject: [PATCH] bugfix --- sqlor/sor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlor/sor.py b/sqlor/sor.py index 56878d1..c127b29 100755 --- a/sqlor/sor.py +++ b/sqlor/sor.py @@ -181,7 +181,7 @@ class SQLor(object): page = int(NS.get(paging['pagename'],1)) rows = int(NS.get(paging['rowsname'],ROWS)) sort = NS.get(paging.get('sortname','sort'),None) - if isinstance(sort, dict): + if isinstance(sort, list): sort = ','.join(sort) if not sort: return sql