From 9cca728a66d86182f2693853383d8d7f8a2e5d29 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sat, 3 Jul 2021 21:54:57 -0700 Subject: [PATCH] Better to use locale.get_collation than locale.collation. --- gramps/plugins/db/dbapi/dbapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/plugins/db/dbapi/dbapi.py b/gramps/plugins/db/dbapi/dbapi.py index 786562768..994fa22a4 100644 --- a/gramps/plugins/db/dbapi/dbapi.py +++ b/gramps/plugins/db/dbapi/dbapi.py @@ -231,7 +231,7 @@ class DBAPI(DbGeneric): """ collation = self.dbapi.check_collation(locale) if collation == None: - return locale.collation + return locale.get_collation() return collation def transaction_begin(self, transaction):