commit b72dcd95af18bf044e7e07c74e9e19a9480a6903
parent 334466985b8ee76fa75798aa9a25131ea8522c87
Author: lash <dev@holbrook.no>
Date: Sun, 20 Aug 2023 14:29:40 +0100
Set untagged when regenerating basket and tags are missing for entires
Diffstat:
5 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/.piknik/.msg/.master b/.piknik/.msg/.master
Binary files differ.
diff --git a/piknik/basket.py b/piknik/basket.py
@@ -179,7 +179,13 @@ class Basket:
def tags(self, issue_id):
o = self.get(issue_id)
- v = self.__tags.state(o.id)
+ v = None
+ try:
+ v = self.__tags.state(o.id)
+ except StateItemNotFound:
+ self.__tags.put(o.id)
+ #self.__tags.set(o.id, self.__tags.UNTAGGED)
+ v = self.__tags.state(o.id)
r = self.__tags.elements(v)
if r == 'UNTAGGED':
r = '(' + r + ')'
diff --git a/requirements.txt b/requirements.txt
@@ -1,4 +1,4 @@
-shep~=0.3.3
+shep~=0.3.6
leveldir~=0.3.1
python-gnupg~=0.5.0
python-mimeparse~=1.6.0
diff --git a/setup.cfg b/setup.cfg
@@ -1,6 +1,6 @@
[metadata]
name = piknik
-version = 0.3.17
+version = 0.3.18rc1
description = CLI issue tracker
author = Louis Holbrook
author_email = dev@holbrook.no
diff --git a/test_requirements.txt b/test_requirements.txt
@@ -0,0 +1 @@
+dominate~=2.7.0