-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed mediator and attendance error before saving
- Loading branch information
Showing
3 changed files
with
59 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import os | ||
from django.core.management.base import BaseCommand, CommandError | ||
from django.db.models import get_model | ||
from datetime import datetime, timedelta | ||
from dg.settings import MEDIA_ROOT | ||
|
||
from dimagi.models import CommCareProject, CommCareUser, CommCareCase | ||
from dimagi.scripts.update_cases_functions import close_case, update_case, write_new_cases | ||
from people.models import Person | ||
|
||
from xml.dom import minidom | ||
from django.core.management.base import BaseCommand | ||
|
||
from dimagi.models import error_list, XMLSubmission | ||
from dimagi.scripts import save_mobile_data | ||
from dimagi.scripts.exception_email import sendmail | ||
|
||
class Command(BaseCommand): | ||
|
||
def handle(self, *args, **options): | ||
xml_object = XMLSubmission.objects.get(id=12098) | ||
xml_string = xml_object.xml_data | ||
xml_parse = minidom.parseString(xml_string) | ||
save_mobile_data.save_screening_data(xml_parse) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters