mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
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:
parent
3bae63050a
commit
887b76a63d
1 changed files with 1 additions and 1 deletions
|
@ -476,7 +476,7 @@ def dump(session, tables=[], directory=None, verbose=False, langs=None):
|
||||||
# if specified, or for official languages by default.
|
# if specified, or for official languages by default.
|
||||||
# For non-translation tables, dump all rows.
|
# For non-translation tables, dump all rows.
|
||||||
if 'local_language_id' in columns:
|
if 'local_language_id' in columns:
|
||||||
if langs is None:
|
if langs is None or 'all' in langs:
|
||||||
def include_row(row):
|
def include_row(row):
|
||||||
return languages[row.local_language_id].official
|
return languages[row.local_language_id].official
|
||||||
elif any(col.info.get('official') for col in table.columns):
|
elif any(col.info.get('official') for col in table.columns):
|
||||||
|
|
Loading…
Reference in a new issue