From 0dbf286a3c0e3f1c6cec0fcb96e09fbee1e0d139 Mon Sep 17 00:00:00 2001 From: Anders Norman Date: Mon, 21 Apr 2025 00:27:52 +0200 Subject: [PATCH] Fixed project listing missing projects defined in config --- watson/watson.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/watson/watson.py b/watson/watson.py index 7ab7da12..76dba6b5 100644 --- a/watson/watson.py +++ b/watson/watson.py @@ -316,7 +316,10 @@ def projects(self): """ Return the list of all the existing projects, sorted by name. """ - return sorted(set(self.frames['project'])) + projects = set(self.frames['project']) + if 'default_tags' in self.config.sections(): + projects |= set(p[0] for p in self.config.items('default_tags')) + return sorted(projects) @property def tags(self):