From 887b76a63df812c6a1f93854b4a4a22a9b19bea7 Mon Sep 17 00:00:00 2001
From: OpulentOwl <61711263+OpulentOwl@users.noreply.github.com>
Date: Mon, 4 Apr 2022 00:29:44 -0400
Subject: [PATCH] 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

---
 pokedex/db/load.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pokedex/db/load.py b/pokedex/db/load.py
index a13cc3f..6921fbe 100644
--- a/pokedex/db/load.py
+++ b/pokedex/db/load.py
@@ -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):