@@ -32,10 +32,9 @@ class AddonData:
3232 sourceURL : str
3333 license : str
3434 homepage : str | None
35- changelog : str | None
3635 licenseURL : str | None
3736 submissionTime : int
38- translations : list [dict [str , str | None ]]
37+ translations : list [dict [str , str ]]
3938
4039
4140def getSha256 (addonPath : str ) -> str :
@@ -109,31 +108,17 @@ def _createDataclassMatchingJsonSchema(
109108
110109 # Add optional fields
111110 homepage : str | None = manifest .get ("url" ) # type: ignore[reportUnknownMemberType]
112- if homepage == "None" :
113- # The config default is None
114- # which is parsed by configobj as a string not a NoneType
111+ if not homepage or homepage == "None" :
115112 homepage = None
116- changelog : str | None = manifest .get ("changelog" ) # type: ignore[reportUnknownMemberType]
117- if changelog == "None" :
118- # The config default is None
119- # which is parsed by configobj as a string not a NoneType
120- changelog = None
121- translations : list [dict [str , str | None ]] = []
122- for langCode , translatedManifest in getAddonManifestLocalizations (manifest ):
123- # Add optional translated changelog.
124- translatedChangelog : str | None = translatedManifest .get ("changelog" ) # type: ignore[reportUnknownMemberType]
125- if translatedChangelog == "None" :
126- # The config default is None
127- # which is parsed by configobj as a string not a NoneType
128- translatedChangelog = None
129113
114+ translations : list [dict [str , str ]] = []
115+ for langCode , translatedManifest in getAddonManifestLocalizations (manifest ):
130116 try :
131117 translations .append (
132118 {
133119 "language" : langCode ,
134120 "displayName" : cast (str , translatedManifest ["summary" ]),
135121 "description" : cast (str , translatedManifest ["description" ]),
136- "changelog" : translatedChangelog ,
137122 },
138123 )
139124 except KeyError as e :
@@ -156,7 +141,6 @@ def _createDataclassMatchingJsonSchema(
156141 sourceURL = sourceUrl ,
157142 license = licenseName ,
158143 homepage = homepage ,
159- changelog = changelog ,
160144 licenseURL = licenseUrl ,
161145 submissionTime = getCurrentTime (),
162146 translations = translations ,
0 commit comments