fix variable name

This commit is contained in:
j 2025-01-23 15:21:08 +05:30
parent e3ece477c0
commit 7459299bf2

View file

@ -13,8 +13,8 @@ headers = {
}
def get_auth(headers):
if settings.LISTMON_TOKEN:
headers['Authorization'] = 'token ' + settings.LISTMON_TOKEN
if settings.LISTMONK_TOKEN:
headers['Authorization'] = 'token ' + settings.LISTMONK_TOKEN
auth = None
else:
auth = (settings.LISTMONK_USER, settings.LISTMONK_PASSWORD)