Skip to content

Commit

Permalink
Renamed api_partinfo_digikey_pi.py to api_digikey.py
Browse files Browse the repository at this point in the history
See #509
  • Loading branch information
set-soft committed Oct 25, 2021
1 parent b590338 commit 75616ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion kicost/distributors/__init__.py
Expand Up @@ -33,7 +33,7 @@
from .dist_local_template import dist_local_template # noqa: F401
from .api_octopart import api_octopart # noqa: F401
from .api_partinfo_kitspace import api_partinfo_kitspace # noqa: F401
from .api_partinfo_digikey_pi import api_partinfo_digikey_pi # noqa: F401
from .api_digikey import api_digikey # noqa: F401


#
Expand Down
Expand Up @@ -47,7 +47,7 @@
__all__ = ['api_partinfo_digikey_pi']


class api_partinfo_digikey_pi(distributor_class):
class api_digikey(distributor_class):
name = 'Digi-Key'
type = 'api'
# Currently enabled only by request
Expand All @@ -56,7 +56,7 @@ class api_partinfo_digikey_pi(distributor_class):

@staticmethod
def init_dist_dict():
if api_partinfo_digikey_pi.enabled:
if api_digikey.enabled:
distributor_class.add_distributors([DIST_NAME])

@staticmethod
Expand Down Expand Up @@ -121,4 +121,4 @@ def query_part_info(parts, distributors, currency):
progress.close()


distributor_class.register(api_partinfo_digikey_pi, 100)
distributor_class.register(api_digikey, 100)

0 comments on commit 75616ab

Please sign in to comment.