diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-08-02 21:42:01 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-08-02 21:53:00 +0200 |
commit | e1012e314d6c21ad1b75082a292506cd751a9117 (patch) | |
tree | 4530dfff8cf7545d8395c6400fe5efc29e490c42 /src/ee/digikey | |
parent | b6c8c2c103b98097adef2fd18547feb6fd7e1952 (diff) | |
download | ee-python-e1012e314d6c21ad1b75082a292506cd751a9117.tar.gz ee-python-e1012e314d6c21ad1b75082a292506cd751a9117.tar.bz2 ee-python-e1012e314d6c21ad1b75082a292506cd751a9117.tar.xz ee-python-e1012e314d6c21ad1b75082a292506cd751a9117.zip |
o Fixing a bad bug and learning some Python: list.insert(index, value)
will only insert at index if the list is index long. If not it will
just append them. Yay. Much better digikey part data now.
Creating a ValueList that automatically expands the list.
o Stopping with silly key and value replacements.
o Updating tests.
Diffstat (limited to 'src/ee/digikey')
-rw-r--r-- | src/ee/digikey/doit.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ee/digikey/doit.py b/src/ee/digikey/doit.py index 6f7c2d5..0452530 100644 --- a/src/ee/digikey/doit.py +++ b/src/ee/digikey/doit.py @@ -142,9 +142,7 @@ def download_part_facts(output: DataSet, in_ds: DataSet): for a in product.attributes: key = "{}/{}".format(a.attribute_type.id, a.attribute_type.label) - key = key.replace("%", "_") - value = a.value.replace("%", "%%") - o.set(key, value) + o.set(key, a.value) def task_digikey_fetch_full_part_facts(): |