Implement adding the next relay
This commit is contained in:
@@ -90,7 +90,10 @@ def get_aliases():
|
||||
|
||||
|
||||
def add_relay(net, num):
|
||||
url = f"irc/network/{net}/{num}"
|
||||
if num:
|
||||
url = f"irc/network/{net}/{num}"
|
||||
else:
|
||||
url = f"irc/network/{net}"
|
||||
payload = {}
|
||||
created = threshold_request(url, payload, method="PUT")
|
||||
return created
|
||||
|
||||
Reference in New Issue
Block a user