This file contains hidden or 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
| import csv | |
| import datetime | |
| import requests | |
| import sys | |
| import logging | |
| logging.basicConfig( | |
| level=logging.INFO, | |
| format='%(asctime)s - %(levelname)s - %(message)s' | |
| ) |
This file contains hidden or 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
| from collections import defaultdict | |
| from django.db import models | |
| from corehq import toggles | |
| from corehq.motech.repeaters.const import State | |
| from corehq.motech.repeaters.models import Repeater, RepeatRecord | |
| states_names_by_keys = { | |
| s.value: s.name for s in State |
This file contains hidden or 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
| import csv | |
| import calendar | |
| import datetime | |
| from datetime import date, timedelta | |
| from django.db.models import Q | |
| from corehq.apps.sms.models import SMS | |
| DOMAIN = 'icds-cas' |