Skip to content

Commit

Permalink
Updated QRealTime_dialogue for backward compatibility
Browse files Browse the repository at this point in the history
replaced "|" with update method

Co-Authored-By: A K Jha <[email protected]>
  • Loading branch information
shivareddyiirs and ashutoshkumarjha committed Nov 1, 2023
1 parent d1b4036 commit 0cdbf92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion QRealTime_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,8 @@ def sendForm(self,xForm_id,payload):
user=self.getValue(self.tr("user"))
password=self.getValue(self.tr("password"))
para = {"format":"json"}
headers = {'Content-Type': "application/json",'Accept': "application/json"} | self.header
headers = {'Content-Type': "application/json",'Accept': "application/json"}
headers.update(self.header)
print("header is"+str(headers))
#creates form:
response = requests.request(method,url,json=payload,headers=headers,params=para)
Expand Down

0 comments on commit 0cdbf92

Please sign in to comment.