diff options
author | Manuel Seelaus <manuel.seelaus@zoho.com> | 2017-12-27 18:00:02 -0700 |
---|---|---|
committer | Manuel Seelaus <manuel.seelaus@zoho.com> | 2017-12-27 18:00:02 -0700 |
commit | 2a7423a515181001c7a0f2c8b4f9f19c82aec95d (patch) | |
tree | 2e1269854d982a97f711fc2109e5cd22b5f9234e | |
parent | 2ef6e740d9ec97360116bcf502a2907dbd5116ed (diff) | |
download | qutebrowser-2a7423a515181001c7a0f2c8b4f9f19c82aec95d.tar.gz qutebrowser-2a7423a515181001c7a0f2c8b4f9f19c82aec95d.zip |
filter out records with None in any field.
-rwxr-xr-x | scripts/hist_importer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/hist_importer.py b/scripts/hist_importer.py index 84fada560..526a752e2 100755 --- a/scripts/hist_importer.py +++ b/scripts/hist_importer.py @@ -107,7 +107,7 @@ def clean(history): Args: history: List of records (datetime, url, title) from source database. """ - nulls = [record for record in history if record[0] is None] + nulls = [record for record in history if None in record] for null_datetime in nulls: history.remove(null_datetime) history = [list(record) for record in history] |