Skip to content

Commit 8d6d581

Browse files
author
kimobrian
committed
chore(url):Update URL for API
1 parent 0f32cc8 commit 8d6d581

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

users.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import requests
22
import json
33

4-
USERS_URL = 'http://localhost:7800/customers'
4+
USERS_URL = 'http://jsonplaceholder.typicode.com/users'
55
def get_users():
66
"""Get list of users"""
77
response = requests.get(USERS_URL)
@@ -16,4 +16,4 @@ def get_user(user_id):
1616
all_users = get_users().json()
1717
for user in all_users:
1818
if user['id'] == user_id:
19-
return user
19+
return user

0 commit comments

Comments
 (0)