Added functionality for pokedex dump -l all, which dumps all languages rather than treating the word 'all' as a language. This has the same functionality as not specifying a language at all, but now the functionality matches the help documentation

This commit is contained in:
OpulentOwl 2022-04-04 00:29:44 -04:00
parent 3bae63050a
commit 887b76a63d
1 changed files with 1 additions and 1 deletions

View File

@ -476,7 +476,7 @@ def dump(session, tables=[], directory=None, verbose=False, langs=None):
# if specified, or for official languages by default.
# For non-translation tables, dump all rows.
if 'local_language_id' in columns:
if langs is None:
if langs is None or 'all' in langs:
def include_row(row):
return languages[row.local_language_id].official
elif any(col.info.get('official') for col in table.columns):