fix: duplicate and miss formated signature info

This commit is contained in:
2026-06-18 14:54:21 +02:00
parent 11ca84993e
commit b32f5f988d
8 changed files with 106 additions and 310 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ def generateFederalFeed(CACHE):
item["text"] += translatedEndDateAndInsufficientSignatures[lang]
elif item["collectedSignature"] == None:
item["text"] += getSignatureInfo(item["creationDate"], lang)
pass # we already put the text before. We just need to keep this elif condition to not raise the following ValueError
else:
raise ValueError(
+3 -3
View File
@@ -64,9 +64,9 @@ translatedMonths = {
"luglio","agosto","settembre","ottobre","novembre","dicembre"]
}
translatedSignatureDates = {
"fr": ("<p>La collecte des signatures a commencé le", "et se terminera vers</p>"),
"de": ("<p>Die Unterschriftensammlung begann am", "und endet ungefähr im</p>"),
"it": ("<p>La raccolta delle firme è iniziata il", "e terminerà circa nel</p>"),
"fr": ("<p>La collecte des signatures a commencé le", "et se terminera en"),
"de": ("<p>Die Unterschriftensammlung begann am", "und endet im"),
"it": ("<p>La raccolta delle firme è iniziata il", "e terminerà nel"),
}
# used in bernAsianHornet.py
translatedBernAsianHornetSightings = {