mirror of
https://github.com/NovaOSS/nova-cord.git
synced 2024-11-25 18:13:57 +01:00
fix v2
This commit is contained in:
parent
3859d984b5
commit
33df5c3454
|
@ -12,7 +12,7 @@ load_dotenv()
|
||||||
|
|
||||||
async def request_user_by_discord_id(discord_id):
|
async def request_user_by_discord_id(discord_id):
|
||||||
return requests.get(
|
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,
|
timeout=3,
|
||||||
headers={
|
headers={
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
@ -107,7 +107,7 @@ Please report this issue to the staff!""", ephemeral=True)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
requests.put(
|
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,
|
timeout=3,
|
||||||
headers={
|
headers={
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
|
|
@ -33,7 +33,7 @@ Please report this issue to the staff!""", ephemeral=True)
|
||||||
|
|
||||||
# CREATE USER
|
# CREATE USER
|
||||||
get_response = requests.post(
|
get_response = requests.post(
|
||||||
url='https://api.nova-oss.com/users',
|
url='http://localhost:2333/users',
|
||||||
timeout=3,
|
timeout=3,
|
||||||
headers={
|
headers={
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
|
Loading…
Reference in a new issue