Skip to content

Commit

Permalink
fix security name (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSterenson authored Nov 5, 2022
1 parent 43e444d commit 566a5c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pymaya/maya_security.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ def get_all_securities(self, lang: Language = Language.ENGLISH):
@staticmethod
def get_names(english_details: Dict[str, Any], hebrew_details: Dict[str, Any]):
return {
"english_short_name":english_details.get('Name'),
"english_long_name": english_details.get('LongName'),
"english_short_name": english_details.get('Name'),
"english_long_name": english_details.get('LongName') or english_details.get('SecurityLongName'),
"hebrew_short_name": hebrew_details.get("Name"),
"hebrew_long_name": hebrew_details.get("LongName"),
"hebrew_long_name": hebrew_details.get("LongName") or hebrew_details.get('SecurityLongName'),
}

def get_details(self, security_id: str, lang: Language = Language.ENGLISH):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setuptools.setup(
name="pymaya",
version="0.2.0",
version="0.2.1",
author="Ben Sterenson",
author_email="bensterenson@gmail.com",
description="Python client to interact with maya.tase.co.il",
Expand Down

0 comments on commit 566a5c8

Please sign in to comment.