-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor as not to call
update()
from add()
`
A lot of the logic of `update` is needed by `add`: * codelist file parsing (indirectly) * file downloading * manifest handling This commit pulls out those needed parts into their own functions, and pulls out parse_codelist_file's line-parsing logic into its own function. This allows us to check the line we're about to add to the codelists file is valid before doing so, check that once we add the line to the codelists file that it is valid, leave pre-existing codelists and their corresponding manifest file entries intact.
- Loading branch information
1 parent
e421132
commit 3f29fdb
Showing
1 changed file
with
114 additions
and
74 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