Skip to content

Commit

Permalink
refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin-muchiri committed Apr 19, 2024
1 parent 09eb3f6 commit 43ab93e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions onadata/apps/main/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import base64
import csv
import json
import os
import re
import socket
Expand Down Expand Up @@ -471,7 +470,7 @@ def _publish_markdown(self, md_xlsform, user, project=None, **kwargs):
created_by=user,
user=user,
xml=survey.to_xml(),
json=json.loads(survey.to_json()),
json=survey.to_json_dict(),
project=project,
version=survey.get("version"),
)
Expand All @@ -481,7 +480,7 @@ def _publish_markdown(self, md_xlsform, user, project=None, **kwargs):
xform=latest_form,
version=survey.get("version"),
xml=data_dict.xml,
json=json.dumps(data_dict.json),
json=survey.to_json(),
)

return data_dict
Expand Down

0 comments on commit 43ab93e

Please sign in to comment.