File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ .tx /api-key
2+ .python-version
Original file line number Diff line number Diff line change 11Polskie tłumaczenie dokumentacji Pythona
22========================================
3- ![ 9.31% do language switchera] ( https://img.shields.io/badge/language_switcher-9.31%25-0.svg )
3+ ![ 9.31% language switchera] ( https://img.shields.io/badge/language_switcher-9.31%25-0.svg )
44![ postęp tłumaczenia całości dokumentacji] ( https://img.shields.io/badge/dynamic/json.svg?label=całość&query=$.pl&url=http://gce.zhsj.me/python/newest )
55
66Znalazłeś błąd lub masz sugestię?
Original file line number Diff line number Diff line change @@ -82,11 +82,13 @@ def recreate_tx_config():
8282def _get_resources ():
8383 resources = []
8484 offset = 0
85+ with open ('.tx/api-key' ) as f :
86+ transifex_api_key = f .read ()
8587 while True :
8688 response = requests .get (
8789 f'https://api.transifex.com/organizations/python-doc/projects/{ PROJECT_SLUG } /resources/' ,
8890 params = {'language_code' : LANGUAGE , 'offset' : offset },
89- auth = ('api' , getenv ( 'TRANSIFEX_API_KEY' ) ))
91+ auth = ('api' , transifex_api_key ))
9092 response_list = response .json ()
9193 resources .extend (response_list )
9294 if len (response_list ) < 100 :
You can’t perform that action at this time.
0 commit comments