Skip to content

Commit

Permalink
Merge pull request #1065 from openzim/mwoffliner_verbose
Browse files Browse the repository at this point in the history
mwoffliner accept string as verbose field since 1.13
  • Loading branch information
benoit74 authored Jan 13, 2025
2 parents 5b05dd9 + b0e261f commit 901da40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions dispatcher/backend/src/common/schemas/offliners/mwoffliner.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,13 +261,13 @@ class Meta:
"description": "Don't include a fulltext search index to the ZIM",
},
)
verbose = fields.Boolean(
truthy=[True],
falsy=[False],
verbose = fields.String(
metadata={
"label": "Verbose",
"description": "Print debug information to the stdout",
"description": "Level of log verbosity, one of info, log, warn, error or "
"quiet. Default is error.",
},
validate=validate.OneOf(["info", "log", "warn", "error", "quiet"]),
)

webp = fields.Boolean(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def make_mwoffliner_flags(**kwargs):
"mwUrl": "https://www.wikipedia.org",
"adminEmail": "contact@kiwix.org",
"format": ["nopic", "novid"],
"verbose": False,
"verbose": "log",
"speed": 1.0,
"articleList": "https://example.com",
"customZimFavicon": "https://example.com/icon.jpeg",
Expand Down Expand Up @@ -81,7 +81,7 @@ def test_valid(self):
"publisher": "Kiwix",
"requestTimeout": 2,
"speed": 1.0,
"verbose": False,
"verbose": "log",
"withoutZimFullTextIndex": False,
"addNamespaces": "100,200",
"getCategories": False,
Expand Down

0 comments on commit 901da40

Please sign in to comment.