Skip to content

Commit d564bc5

Browse files
committed
rename oar_id to os_id
1 parent c8fe4c7 commit d564bc5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

wikirate4py/api.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ def search_source_by_url(self, url, **kwargs):
10751075

10761076
@objectify(Company)
10771077
def add_company(self, name, headquarters, **kwargs):
1078-
"""add_company(name, headquarters, *, oar_id, open_corporates)
1078+
"""add_company(name, headquarters, *, os_id, open_corporates)
10791079
10801080
Creates and Returns a company given the company name and headquarters
10811081
@@ -1087,8 +1087,8 @@ def add_company(self, name, headquarters, **kwargs):
10871087
name of the region the headquarters of the company is located
10881088
wikipedia
10891089
company's wikipedia page url
1090-
oar_id
1091-
company's identifier on https://openapparel.org
1090+
os_id
1091+
company's identifier on https://opensupplyhub.org
10921092
open_corporates
10931093
company's identifier on https://opencorporates.com/
10941094
@@ -1102,7 +1102,7 @@ def add_company(self, name, headquarters, **kwargs):
11021102
raise WikiRate4PyException(
11031103
'A WikiRate company is defined by a name and headquarters, please be sure you '
11041104
'have defined both while trying to create a new company')
1105-
optional_params = ('oar_id', 'wikipedia', 'open_corporates', 'website')
1105+
optional_params = ('os_id', 'wikipedia', 'open_corporates', 'website')
11061106
params = {
11071107
"card[type]": "Company",
11081108
"card[name]": name,

0 commit comments

Comments
 (0)