mirror of
https://github.com/FAUSheppy/atlantis-event-dispatcher
synced 2025-12-06 06:21:36 +01:00
fix: auth paranthesis
This commit is contained in:
@@ -24,8 +24,7 @@ def report_dispatch_error(target, uid, error):
|
|||||||
def confirm_dispatch(target, uid):
|
def confirm_dispatch(target, uid):
|
||||||
'''Confirm to server that message has been dispatched and can be removed'''
|
'''Confirm to server that message has been dispatched and can be removed'''
|
||||||
|
|
||||||
response = requests.post(target + "/confirm-dispatch", json=[{ "uuid" : uid }],
|
response = requests.post(target + "/confirm-dispatch", json=[{ "uuid" : uid }])
|
||||||
auth=(args.user, args.password))
|
|
||||||
|
|
||||||
if response.status_code not in [200, 204]:
|
if response.status_code not in [200, 204]:
|
||||||
print("Failed to confirm disptach with server for {} ({})".format(
|
print("Failed to confirm disptach with server for {} ({})".format(
|
||||||
@@ -52,7 +51,7 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
# request dispatches #
|
# request dispatches #
|
||||||
response = requests.get(args.target +
|
response = requests.get(args.target +
|
||||||
"/get-dispatch?method={}&dispatch-access-token={}".format(args.method), args.password)
|
"/get-dispatch?method={}&dispatch-access-token={}".format(args.method, args.password))
|
||||||
|
|
||||||
# check status #
|
# check status #
|
||||||
if response.status_code == HTTP_NOT_FOUND:
|
if response.status_code == HTTP_NOT_FOUND:
|
||||||
|
|||||||
Reference in New Issue
Block a user