From 6a5bb5199f19bfba8ae8c8b14366ee5f68c81966 Mon Sep 17 00:00:00 2001 From: Tomas Machalek Date: Mon, 22 Feb 2021 10:52:05 +0100 Subject: [PATCH] Update version to 0.15.1 --- lib/plugins/ucnk_remote_auth5/backend/mysql.py | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/plugins/ucnk_remote_auth5/backend/mysql.py b/lib/plugins/ucnk_remote_auth5/backend/mysql.py index be0bcbc0a3..b133bf61bd 100644 --- a/lib/plugins/ucnk_remote_auth5/backend/mysql.py +++ b/lib/plugins/ucnk_remote_auth5/backend/mysql.py @@ -217,7 +217,8 @@ def load_all_corpora(self, user_id, substrs=None, keywords=None, min_size=0, max def load_featured_corpora(self, user_lang): cursor = self._db.cursor() - desc_col = 'c.description_{0}'.format(user_lang[:2]) + lang_base = user_lang[:2] + desc_col = 'c.description_{}'.format(lang_base if lang_base == 'cs' else 'en') cursor.execute('SELECT c.name AS corpus_id, c.name AS id, ifnull(rc.name, c.name) AS name, ' '{0} AS description, c.size ' 'FROM corpora AS c ' diff --git a/package.json b/package.json index 7a51d7d9f2..44e309e472 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "kontext", "description": "An advanced web front-end for the Manatee-open corpus search engine", "license": "GPL-2.0", - "version": "0.15.0", + "version": "0.15.1", "repository": { "type": "git", "url": "https://github.com/czcorpus/kontext"