diff options
author | Jauhien Piatlicki (jauhien) <piatlicki@gmail.com> | 2013-11-20 23:51:59 +0100 |
---|---|---|
committer | Jauhien Piatlicki (jauhien) <piatlicki@gmail.com> | 2013-11-20 23:51:59 +0100 |
commit | 7ac872366513428d234c91d11a24649cc02417ec (patch) | |
tree | 48417035115dc3250a56d6c504817508f70b58cc | |
parent | gs-pypi: fix issue#3 (diff) | |
download | g-sorcery-7ac872366513428d234c91d11a24649cc02417ec.tar.gz g-sorcery-7ac872366513428d234c91d11a24649cc02417ec.tar.bz2 g-sorcery-7ac872366513428d234c91d11a24649cc02417ec.zip |
gs-pypi: fix issue#4
-rw-r--r-- | gs_pypi/pypi_db.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gs_pypi/pypi_db.py b/gs_pypi/pypi_db.py index 847cbf3..2b201c6 100644 --- a/gs_pypi/pypi_db.py +++ b/gs_pypi/pypi_db.py @@ -137,7 +137,10 @@ class PypiDBGenerator(DBGenerator): data["info"][entry_name] = {} for cat_entry in entry("a"): cat_data = cat_entry.string.split(" :: ") - data["info"][entry_name][cat_data[0]] = cat_data[1:] + if not cat_data[0] in data["info"][entry_name]: + data["info"][entry_name][cat_data[0]] = cat_data[1:] + else: + data["info"][entry_name][cat_data[0]].extend(cat_data[1:]) continue if entry("span"): |