From f7fbfd9c5b27f9e09e208aecfe9969a42afa5b42 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 28 Jun 2019 21:45:06 +0100 Subject: [PATCH] Avoid name conflict --- session.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/session.py b/session.py index ef5b3b44..0dcc6173 100644 --- a/session.py +++ b/session.py @@ -28,7 +28,7 @@ def getJson(session,url: str,headers,params): session.cookies.clear() return session.get(url, headers=sessionHeaders, params=sessionParams).json() -def postJson(session,postJson,federationList,inboxUrl: str): +def postJson(session,postJsonObject,federationList,inboxUrl: str): """Post a json message to the inbox of another person """ # check that we are posting to a permitted domain @@ -40,5 +40,5 @@ def postJson(session,postJson,federationList,inboxUrl: str): if not permittedDomain: return None - postResult = session.post(url = inboxUrl, data = postJson) + postResult = session.post(url = inboxUrl, data = postJsonObject) return postResult.text