From 04f2dbbf985968c48204f3b81e64659ecbb339ed Mon Sep 17 00:00:00 2001
From: Robert Eckelmann <longnoserob@gmail.com>
Date: Sun, 11 Aug 2024 17:07:22 +0900
Subject: [PATCH] ttq/print.py: do not print empyt matrix or gitlab user names
 (MR 3)

fixes #1

Signed-off-by: Robert Eckelmann <longnoserob@gmail.com>
---
 ttq/print.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/ttq/print.py b/ttq/print.py
index 119686b..3c84b63 100644
--- a/ttq/print.py
+++ b/ttq/print.py
@@ -9,9 +9,11 @@ def format_user_list(users):
     ret = []
     for user in users:
         if ttq.args.ARGS.matrix:
-            ret += [user["matrix"]]
+            if user['matrix'] != '':
+                ret += [user["matrix"]]
         else:
-            ret += [f"@{user['gitlab']}"]
+            if user['gitlab'] != '':
+                ret += [f"@{user['gitlab']}"]
 
     return ", ".join(sorted(ret))
 
-- 
GitLab