Skip to content

Commit

Permalink
Merge pull request #655 from praekeltfoundation/migrate-to-turn-scripts
Browse files Browse the repository at this point in the history
Add language to test
  • Loading branch information
erikh360 authored Jan 20, 2025
2 parents 85c2c5b + 8c4ffea commit 9f9b41d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/migrate_to_turn/fetch_rapidpro_contacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@

RAPIDPRO_URL = "https://rapidpro.qa.momconnect.co.za"

START_DATE = "2024-01-01 14:13:06"
END_DATE = "2025-01-07 19:13:06"
START_DATE = "2025-01-20 01:13:06"
END_DATE = "2025-01-20 19:13:06"
LIMIT = 1000

# TODO: add all the fields here: <rapidpro-field-name>: <details>
FIELD_MAPPING = {
"edd": {"turn_name": "test", "process": process_datetime, "type": "custom"},
"name": {"turn_name": "name", "type": "default"},
"language": {"turn_name": "language", "type": "default"},
}

client = TembaClient(RAPIDPRO_URL, os.environ["RAPIDPRO_TOKEN"])
Expand Down

0 comments on commit 9f9b41d

Please sign in to comment.