-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XLS data transfer to Kobo #19
Open
yaqubdiyaa
wants to merge
143
commits into
kobotoolbox:main
Choose a base branch
from
yaqubdiyaa:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
143 commits
Select commit
Hold shift + click to select a range
80b419b
methods added to xml.py, and run2.py can be used to transfer google f…
yaqubdiyaa 42c04d3
can run run2.py form command line (--excel_file 'pathname')
yaqubdiyaa 0e017a9
fixed error so it can run from command line
yaqubdiyaa 10d10c4
working from command line (need to clean)
yaqubdiyaa c833de7
cleaned (and compatible with original kobo-transfer code)
yaqubdiyaa 105dec7
Update README.md
yaqubdiyaa 433c0aa
Update README.md
yaqubdiyaa 396695b
Merge pull request #1 from yaqubdiyaa/xls-xml
yaqubdiyaa 75043c1
Update README.md
yaqubdiyaa 981a8b1
Update README.md
yaqubdiyaa 4b254c1
Update README.md
yaqubdiyaa 862f06a
Update README.md
yaqubdiyaa 4333769
default xlsx added
yaqubdiyaa 3947c22
Merge pull request #2 from yaqubdiyaa/xls-xml
yaqubdiyaa 0117f6e
Delete Filename(google).xlsx
yaqubdiyaa 4b6343f
Update README.md
yaqubdiyaa 01aaf5f
downloads media from google drive (connected to config file), but err…
yaqubdiyaa edcde7a
cleaned + refactored (methods extracted to new file)
yaqubdiyaa 28cf4f8
Update README.md
yaqubdiyaa 5e5bb4b
accounted for ranking questions + group questions upload from xlsx to…
yaqubdiyaa f247a58
Delete ~$Kobo_Platform_Test_-_rank-groups.xlsx
yaqubdiyaa 37b4be0
Delete Filename(google).xlsx
yaqubdiyaa d3708d0
Update README.md
yaqubdiyaa 758f043
Update README.md
yaqubdiyaa 9f55873
Merge branch 'general-xlsx-kobo'
yaqubdiyaa 6557dcd
hardcoded data.xlsx
yaqubdiyaa a6fbf05
removed google drive media methods
yaqubdiyaa b40eee4
Merge pull request #4 from yaqubdiyaa/general-xlsx-kobo
yaqubdiyaa 43ee73b
grouping works with data.xlsx
yaqubdiyaa a830336
works from command line with python3 run2.py -xt -ef ./data.xlsx
yaqubdiyaa 5739e88
commented out a line for testing so output file not saved in directory
yaqubdiyaa 6ee80a6
Merge pull request #5 from yaqubdiyaa/main
yaqubdiyaa 0b4cc7b
repeating groups works correctly
yaqubdiyaa 59b9af4
Merge pull request #6 from yaqubdiyaa/general-xlsx-kobo
yaqubdiyaa 3483c0b
importing media
yaqubdiyaa 921781f
Update README.md
yaqubdiyaa e62fe0f
Update README.md
yaqubdiyaa 0182ce2
Update README.md
yaqubdiyaa 41c9436
Update README.md
yaqubdiyaa 08d40e6
Update README.md
yaqubdiyaa ad30482
combined google+general xml methods, match_kobo method for warning me…
yaqubdiyaa 6c187ba
deleted specific google data-->xml method
yaqubdiyaa 886ecd0
Update README.md
yaqubdiyaa 7ac185d
all none shows up as "" now, repeat groups not working anymore
yaqubdiyaa 79778c3
fixed editing repeat group responses
yaqubdiyaa 56d3dc3
initial submission of repeat group (with no uuid)
yaqubdiyaa 09d4b90
Update README.md
yaqubdiyaa abb12dd
Update README.md
yaqubdiyaa 34bab1b
Update README.md
yaqubdiyaa 98ab5f0
Update README.md
yaqubdiyaa 3c78db8
Merge pull request #7 from yaqubdiyaa/general-xlsx-kobo
yaqubdiyaa bc5f01b
changes to speed up transfer
yaqubdiyaa 9acd406
Update README.md
yaqubdiyaa 765cf0a
Update README.md
yaqubdiyaa 48bd5e2
refactored for shorter/cleaner functions
yaqubdiyaa 8942a5d
commented out get_media, del_media, and created single_submission_xml…
yaqubdiyaa 47329e0
added comments
yaqubdiyaa b20342d
removed unnecessary imports
yaqubdiyaa 0ab6cfd
Update README.md
yaqubdiyaa b50f254
removed imports in media.py
yaqubdiyaa 10398da
test xlsx (import and downloaded)
yaqubdiyaa 26f17f2
fixed -gt multiple select
yaqubdiyaa 26fdf2b
Merge branch 'main' of https://github.com/yaqubdiyaa/kobo-transfer
yaqubdiyaa aeb56ae
fixed -gt multiple select
yaqubdiyaa 20be0a6
Update README.md
yaqubdiyaa 498876d
Merge branch 'main' of https://github.com/yaqubdiyaa/kobo-transfer
yaqubdiyaa db8d558
Merge pull request #11 from yaqubdiyaa/main
yaqubdiyaa fc5a9cd
deleted demodownloaded xlsx
yaqubdiyaa 9c318c8
edited run.py
yaqubdiyaa 8b05753
Delete DemoDownloaded.xlsx
yaqubdiyaa 70a360c
Delete Kobo_Platform_Test_-_rank-groups.xlsx
yaqubdiyaa 348d13f
Delete run2.py
yaqubdiyaa 34fef1b
Delete DemoProjectDownloadedData.xlsx
yaqubdiyaa ce9a24d
Delete repeatgroupproject.xlsx
yaqubdiyaa 4293f6d
Merge pull request #12 from yaqubdiyaa/run.py
yaqubdiyaa e655f6a
Update README.md
yaqubdiyaa e41830a
Update README.md
yaqubdiyaa e19a466
Update README.md
yaqubdiyaa d92aab0
Update README.md
yaqubdiyaa 23ca144
Update README.md
yaqubdiyaa 6b0f8f3
added warning method
yaqubdiyaa d77c453
Update README.md
yaqubdiyaa bb1e6c2
Update README.md
yaqubdiyaa a8e360f
ds
yaqubdiyaa fad0cda
Merge branch 'run.py'
yaqubdiyaa e9d3da9
Delete .DS_Store
yaqubdiyaa 64fb19f
Update README.md
yaqubdiyaa d942c6b
removed google code
yaqubdiyaa b297beb
reformatted using black
yaqubdiyaa 64fddf5
supports nested groups (not tested w multiple sheets/repeat)
yaqubdiyaa 23d57c2
supports multiple repeat groups (more than 2 sheets)
yaqubdiyaa 2ef083f
nested repeat partially working (check note)
yaqubdiyaa 5aa8c44
nested repeat working
yaqubdiyaa dbd237f
changed all ==None to is None
yaqubdiyaa 4836e10
- changed == 'end' or == 'start to in['end','start']
yaqubdiyaa 6fe0984
both nested repeat and multiple repeats working
yaqubdiyaa 49c02fa
removed initial_repeat logic
yaqubdiyaa cc46afe
changed all cell_value == "" to not cell_value
yaqubdiyaa 321e52d
removed all gtransfer logic
yaqubdiyaa 48ed103
made test/new.py repeat function consistent with original
yaqubdiyaa 88a3c39
nested repeat still working, case 2 working (havent checked case 1 bu…
yaqubdiyaa 3a190d8
not using _ in general_, fixed geopoint, passing index in for media
yaqubdiyaa bae6756
fixed format for uuid:eo923048 (still need to test with missing uuids)
yaqubdiyaa e90658c
fixed uuid: format, tested project w repeat groups and no uuids (repe…
yaqubdiyaa 3f7019f
media upload and uuid: format working
yaqubdiyaa d8923da
added readme comments about export formatting (single column, no medi…
yaqubdiyaa 992c6fe
more code blocks
yaqubdiyaa 5e21a8e
all general tests working! all new.py copied onto xlsx_kobo; only che…
yaqubdiyaa cda17c9
new.py and xlsx_kobo are consistent, added some comments to function …
yaqubdiyaa 3b889d4
deleted unnecessary comments from xlsx_kobo new_repeat(), but kept al…
yaqubdiyaa 7243fd8
changed deprecated+submissionID logic and it worked!!
yaqubdiyaa 1aba66e
changed nsmap_element naming to nsmap_dict
yaqubdiyaa d1a2d41
fixed all_empty warning message
yaqubdiyaa d5822ef
changed create_group so that check_for_group isn't needed anymore. no…
yaqubdiyaa 4cc7087
removed the warnings method (clunky, unnecessary, need to ask josh if…
yaqubdiyaa 124e3bb
works for everything (haven't tested transfer) except case 3
yaqubdiyaa a13ecc0
tested repeat() function with different cases, but not sure if I'm mi…
yaqubdiyaa d3ff827
unsure about repeat method
yaqubdiyaa b31cd1a
cleaned methods
yaqubdiyaa 0c0cfa2
replaced "" --> ' '
yaqubdiyaa 01c0ed4
refactored new repeat method
yaqubdiyaa e4a4d6e
added comments, changed variable name _uid --> submission_xml
yaqubdiyaa be9b4b2
reformatted
yaqubdiyaa 7798d16
reordered functions
yaqubdiyaa 8acbbd1
Merge pull request #14 from yaqubdiyaa/review
yaqubdiyaa 034c7b3
Rename README.md to xls-transfer/README.md
yaqubdiyaa 8142513
Delete testrun.py
yaqubdiyaa ae80d2d
Delete GoogleDemoForm (Responses).xlsx
yaqubdiyaa 009c4db
Delete nested_project.xlsx
yaqubdiyaa 296ca92
Delete DemoProjectInitialUpload.xlsx
yaqubdiyaa f92a7be
Delete normal_group.xlsx
yaqubdiyaa 7153545
Delete transfer/new.py
yaqubdiyaa 40195e2
Create xls-import-requirements.txt
yaqubdiyaa 96027c2
added req files + edited readme
yaqubdiyaa 4d0a8a1
deleted imports
yaqubdiyaa c7449a0
edited readme
yaqubdiyaa cbdb81b
readme edit
yaqubdiyaa f08792f
added tests
yaqubdiyaa 543f092
new tests (group geo)
yaqubdiyaa b106f5d
group geo edit ++ parent_table outside loop edit
yaqubdiyaa 1e407b4
Update test_description.txt
yaqubdiyaa 20c172b
initial upload example + test
yaqubdiyaa 4502ebb
Merge branch 'main' of https://github.com/yaqubdiyaa/kobo-transfer
yaqubdiyaa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 @@ | ||
<root><next /><previous /><results><aRxMkyoPa6dj5wqMnT4vnz id="aRxMkyoPa6dj5wqMnT4vnz" version="1 (2024-03-14 10:48:27)"><formhub><uuid>8f5f9a0801cb4c0c85bc340dde5c3dc4</uuid></formhub><start>2024-03-19T18:03:42.398000</start><end>2024-03-19T18:07:04.622000</end><Quest_name>Quest for Crystal</Quest_name><Quest_starting_date>2024-03-05 00:00:00</Quest_starting_date><character_selection><Character_name>Percy</Character_name><character_objective><Objective_title>Retrieval of Crystal</Objective_title><Objective_description>locate the cave and get it from the guardian</Objective_description></character_objective><character_tasks><group_yj2jm99><Task_difficulty>3</Task_difficulty><Task_description>navigate through forest, and avoid traps</Task_description></group_yj2jm99><Task_title>forest navigation</Task_title></character_tasks></character_selection><__version__>v5NMWz6Pcy8Wq9XzTHLViC</__version__><meta><instanceID>uuid:77de2884-b34e-48ed-84bf-e172680fb2e2</instanceID><deprecatedID>uuid:63047222-c474-4e5f-bd16-f37b6eab7891</deprecatedID></meta></aRxMkyoPa6dj5wqMnT4vnz><aRxMkyoPa6dj5wqMnT4vnz id="aRxMkyoPa6dj5wqMnT4vnz" version="1 (2024-03-14 10:48:27)"><formhub><uuid>8f5f9a0801cb4c0c85bc340dde5c3dc4</uuid></formhub><start>2024-03-19T18:07:31.300000</start><end>2024-03-19T18:15:06.317000</end><Quest_name>Mountain expedition</Quest_name><Quest_starting_date>2024-03-03 00:00:00</Quest_starting_date><character_selection><Character_name>aria</Character_name><character_objective><Objective_title>reach the summit</Objective_title><Objective_description>go through extreme weather and terrain to reach highest peak</Objective_description></character_objective><character_tasks><group_yj2jm99><Task_difficulty>1</Task_difficulty><Task_description>visit base camp to get essential gear</Task_description></group_yj2jm99><Task_title>climbing gear</Task_title></character_tasks><character_tasks><group_yj2jm99><Task_difficulty>3</Task_difficulty><Task_description>icefall</Task_description></group_yj2jm99><Task_title>navigate the icefall</Task_title></character_tasks><character_tasks><group_yj2jm99><Task_difficulty>4</Task_difficulty><Task_description>summit attempt</Task_description></group_yj2jm99><Task_title>final push to the summit!</Task_title></character_tasks></character_selection><character_selection><Character_name>Horace</Character_name><character_objective><Objective_title>guidance</Objective_title><Objective_description>guide the team safely</Objective_description></character_objective><character_tasks><group_yj2jm99><Task_difficulty>3</Task_difficulty><Task_description>assess conditions to plan the safest and most efficient route</Task_description></group_yj2jm99><Task_title>planning</Task_title></character_tasks><character_tasks><group_yj2jm99><Task_difficulty>3</Task_difficulty><Task_description>establish emergency response protocols</Task_description></group_yj2jm99><Task_title>emergency planning</Task_title></character_tasks><character_tasks><group_yj2jm99><Task_difficulty /><Task_description>provide constant support and encouragement to team, and help with physical and mental well-being</Task_description></group_yj2jm99><Task_title>support</Task_title></character_tasks></character_selection><__version__>v5NMWz6Pcy8Wq9XzTHLViC</__version__><meta><instanceID>uuid:61c7dc7e-7a25-4af2-abfa-136f8d0941eb</instanceID><deprecatedID>uuid:a148ed1a-64d4-44e2-90de-80b80d715227</deprecatedID></meta></aRxMkyoPa6dj5wqMnT4vnz><aRxMkyoPa6dj5wqMnT4vnz id="aRxMkyoPa6dj5wqMnT4vnz" version="1 (2024-03-14 10:48:27)"><formhub><uuid>8f5f9a0801cb4c0c85bc340dde5c3dc4</uuid></formhub><start>2024-03-19T18:15:06.346000</start><end>2024-03-19T18:16:26.712000</end><Quest_name>The Lost City</Quest_name><Quest_starting_date>2024-03-03 00:00:00</Quest_starting_date><character_selection><Character_name>Elara</Character_name><character_objective><Objective_title>find the entrance</Objective_title><Objective_description>uncover hidden entrance</Objective_description></character_objective><character_tasks><group_yj2jm99><Task_difficulty>3</Task_difficulty><Task_description>use knowledge of ancient languages to decipher inscriptions</Task_description></group_yj2jm99><Task_title>decode inscriptions</Task_title></character_tasks></character_selection><__version__>v5NMWz6Pcy8Wq9XzTHLViC</__version__><meta><instanceID>uuid:c74ddab2-40e7-4a08-b1e6-e859f5629637</instanceID><deprecatedID>uuid:2faf5ce3-49d7-4109-9819-18d4bc9d8292</deprecatedID></meta></aRxMkyoPa6dj5wqMnT4vnz><aRxMkyoPa6dj5wqMnT4vnz id="aRxMkyoPa6dj5wqMnT4vnz" version="1 (2024-03-14 10:48:27)"><formhub><uuid>8f5f9a0801cb4c0c85bc340dde5c3dc4</uuid></formhub><start>2024-03-19T18:16:26.736000</start><end>2024-03-19T18:19:58.767000</end><Quest_name>The forbidden ruins</Quest_name><Quest_starting_date /><character_selection><Character_name>Thalia</Character_name><character_objective><Objective_title>Uncover lost civilization</Objective_title><Objective_description>piece together clues to unravel mysteries of forgotten civilization</Objective_description></character_objective></character_selection><__version__>v5NMWz6Pcy8Wq9XzTHLViC</__version__><meta><instanceID>uuid:dff86a4f-2b46-4a06-b0ad-a0fe08d1ce49</instanceID><deprecatedID>uuid:cbd2b4d0-f98d-48d0-8988-52cd94ed5861</deprecatedID></meta></aRxMkyoPa6dj5wqMnT4vnz></results></root> |
Binary file not shown.
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO?