Avoid name conflict

master
Bob Mottram 2019-06-28 21:45:06 +01:00
parent 1571d350e3
commit f7fbfd9c5b
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ def getJson(session,url: str,headers,params):
session.cookies.clear() session.cookies.clear()
return session.get(url, headers=sessionHeaders, params=sessionParams).json() 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 """Post a json message to the inbox of another person
""" """
# check that we are posting to a permitted domain # check that we are posting to a permitted domain
@ -40,5 +40,5 @@ def postJson(session,postJson,federationList,inboxUrl: str):
if not permittedDomain: if not permittedDomain:
return None return None
postResult = session.post(url = inboxUrl, data = postJson) postResult = session.post(url = inboxUrl, data = postJsonObject)
return postResult.text return postResult.text