From cbd8a23236a51ac9bcbf43243dfda89c65fd8177 Mon Sep 17 00:00:00 2001 From: s3lph <1375407-s3lph@users.noreply.gitlab.com> Date: Tue, 19 Jul 2022 22:52:56 +0200 Subject: [PATCH 1/4] Add CI task to trigger a build of the repository pipeline. Hope this works... --- .gitlab-ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8ba703c..7a00d33 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,6 +5,7 @@ stages: - test - build - deploy +- upload @@ -123,3 +124,12 @@ release: - python package/release.py only: - tags + + +repo: + stage: upload + trigger: s3lph/custom-packages + variables: + MULTIPROJECT_TRIGGER_JOBNAME: matemat + only: + - staging From c7f6e1e849aa8b3ed54b773151534f851ba45144 Mon Sep 17 00:00:00 2001 From: s3lph <1375407-s3lph@users.noreply.gitlab.com> Date: Tue, 19 Jul 2022 23:16:05 +0200 Subject: [PATCH 2/4] Works, restricting to tags only --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7a00d33..adfd23b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -132,4 +132,4 @@ repo: variables: MULTIPROJECT_TRIGGER_JOBNAME: matemat only: - - staging + - tags From caee4a3ee7d7f6b9958c41152923c971b3a3d146 Mon Sep 17 00:00:00 2001 From: s3lph <1375407-s3lph@users.noreply.gitlab.com> Date: Wed, 20 Jul 2022 21:43:47 +0200 Subject: [PATCH 3/4] Sort user list in db.list_users rather than during templating. Closes !82 --- matemat/db/facade.py | 1 + templates/productlist.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/matemat/db/facade.py b/matemat/db/facade.py index 3572ff9..ec4f3c7 100644 --- a/matemat/db/facade.py +++ b/matemat/db/facade.py @@ -87,6 +87,7 @@ class MatematDatabase(object): SELECT user_id, username, email, is_admin, is_member, balance, receipt_pref FROM users WHERE touchkey IS NOT NULL OR NOT :must_have_touchkey + ORDER BY username COLLATE NOCASE ASC ''', { 'must_have_touchkey': with_touchkey }): diff --git a/templates/productlist.html b/templates/productlist.html index 104856d..8f1798e 100644 --- a/templates/productlist.html +++ b/templates/productlist.html @@ -36,7 +36,7 @@