Skip to content

Commit

Permalink
update get request
Browse files Browse the repository at this point in the history
  • Loading branch information
steph-feng committed Nov 10, 2024
1 parent c613a6d commit 15fc171
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 37 deletions.
34 changes: 0 additions & 34 deletions i18nilize/integration_test.py

This file was deleted.

7 changes: 4 additions & 3 deletions i18nilize/src/internationalize/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ def create_json(json_object, language):
# Input: language
# Output: None, but creates a local JSON file containing translations
def generate_file(language, token):
url = 'http://localhost:8000/api/process-translations/'
params = {'language': language, 'token': token}
response = requests.get(url, params=params)
url = 'http://localhost:8000/api/translations'
params = {'language': language}
headers = {'token': token}
response = requests.get(url, params=params, headers=headers)

if response.status_code != 200:
print(f'Error: {response.status_code}')
Expand Down

0 comments on commit 15fc171

Please sign in to comment.