Skip to content

Commit

Permalink
Merge pull request #205 from ertush/dev
Browse files Browse the repository at this point in the history
Modified limes 38, 42 and 43 of facility_models.py
  • Loading branch information
ertush authored Nov 25, 2024
2 parents a81a2cf + 4f466ad commit a84b7f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions facilities/models/facility_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ def sendDataToOpenHIM(payload, u_id=''):
"""
This function send data to OpenHIM which sends to all the other DHIS instances configured there
"""
credentials = f"{settings.OpenHIM_username}:{settings.OpenHIM_password}"
credentials = "{}:{}".format(settings.OpenHIM_username, settings.OpenHIM_password)
auth_coded = base64.b64encode(credentials.encode()).decode("utf-8")


post_url = f"{settings.OpenHIM_URL}/interop230/khmfr_dhis"
put_url = f"{settings.OpenHIM_URL}/interop230/khmfr_dhis/update/{u_id}"
post_url = "{}/interop230/khmfr_dhis".format(settings.OpenHIM_URL)
put_url = "{}/interop230/khmfr_dhis/update/{u_id}".format(settings.OpenHIM_URL)

headers = {
'Content-Type': 'application/json',
Expand Down

0 comments on commit a84b7f4

Please sign in to comment.