From 33df5c34546f0d3f5617ab36b495da1d961d1fbd Mon Sep 17 00:00:00 2001 From: nsde Date: Tue, 29 Aug 2023 08:58:30 +0200 Subject: [PATCH] fix v2 --- cord/accounts.py | 4 ++-- cord/credential_manager.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cord/accounts.py b/cord/accounts.py index 5f0da6b..40e8398 100644 --- a/cord/accounts.py +++ b/cord/accounts.py @@ -12,7 +12,7 @@ load_dotenv() async def request_user_by_discord_id(discord_id): return requests.get( - url=f'https://api.nova-oss.com/users?discord_id={discord_id}', + url=f'http://localhost:2333/users?discord_id={discord_id}', timeout=3, headers={ 'Content-Type': 'application/json', @@ -107,7 +107,7 @@ Please report this issue to the staff!""", ephemeral=True) try: requests.put( - url=f'https://api.nova-oss.com/users?discord_id={account["auth"]["discord"]}', + url=f'http://localhost:2333/users?discord_id={account["auth"]["discord"]}', timeout=3, headers={ 'Content-Type': 'application/json', diff --git a/cord/credential_manager.py b/cord/credential_manager.py index e5e6a3a..3769d4f 100644 --- a/cord/credential_manager.py +++ b/cord/credential_manager.py @@ -33,7 +33,7 @@ Please report this issue to the staff!""", ephemeral=True) # CREATE USER get_response = requests.post( - url='https://api.nova-oss.com/users', + url='http://localhost:2333/users', timeout=3, headers={ 'Content-Type': 'application/json',