summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Seelaus <manuel.seelaus@zoho.com>2017-12-27 18:00:02 -0700
committerManuel Seelaus <manuel.seelaus@zoho.com>2017-12-27 18:00:02 -0700
commit2a7423a515181001c7a0f2c8b4f9f19c82aec95d (patch)
tree2e1269854d982a97f711fc2109e5cd22b5f9234e
parent2ef6e740d9ec97360116bcf502a2907dbd5116ed (diff)
downloadqutebrowser-2a7423a515181001c7a0f2c8b4f9f19c82aec95d.tar.gz
qutebrowser-2a7423a515181001c7a0f2c8b4f9f19c82aec95d.zip
filter out records with None in any field.
-rwxr-xr-xscripts/hist_importer.py2
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]