Skip to content

Commit

Permalink
sort imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Wambere committed Sep 24, 2024
1 parent 52bfe20 commit 007e30e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 28 deletions.
3 changes: 2 additions & 1 deletion importer/importer/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
import requests
from dateutil.relativedelta import relativedelta

from importer.config.settings import api_service, fhir_base_url, product_access_token
from importer.config.settings import (api_service, fhir_base_url,
product_access_token)
from importer.request import handle_request

dir_path = str(pathlib.Path(__file__).parent.resolve())
Expand Down
38 changes: 11 additions & 27 deletions importer/main.py
Original file line number Diff line number Diff line change
@@ -1,38 +1,22 @@
import json
import logging
import pathlib
from datetime import datetime

import click
import json

from importer.builder import (
build_assign_payload,
build_group_list_resource,
build_org_affiliation,
build_payload,
build_report,
extract_matches,
extract_resources,
link_to_location,
)
from importer.builder import (build_assign_payload, build_group_list_resource,
build_org_affiliation, build_payload,
build_report, extract_matches, extract_resources,
link_to_location)
from importer.config.settings import fhir_base_url
from importer.request import handle_request
from importer.users import (
assign_default_groups_roles,
assign_group_roles,
confirm_keycloak_user,
confirm_practitioner,
create_roles,
create_user,
create_user_resources,
)
from importer.utils import (
build_mapped_payloads,
clean_duplicates,
export_resources_to_csv,
read_csv,
read_file_in_chunks,
)
from importer.users import (assign_default_groups_roles, assign_group_roles,
confirm_keycloak_user, confirm_practitioner,
create_roles, create_user, create_user_resources)
from importer.utils import (build_mapped_payloads, clean_duplicates,
export_resources_to_csv, read_csv,
read_file_in_chunks)

dir_path = str(pathlib.Path(__file__).parent.resolve())

Expand Down

0 comments on commit 007e30e

Please sign in to comment.