From 72be77519e2d3d6554c63b8f019f8d18cebf8498 Mon Sep 17 00:00:00 2001 From: Elliot <3186037+elliot-100@users.noreply.github.com> Date: Sat, 13 Jul 2024 16:08:31 +0100 Subject: [PATCH] Simplify import in example scripts --- example_manager_member_counts.py | 4 ++-- example_profile_info.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/example_manager_member_counts.py b/example_manager_member_counts.py index 3eb917d..adf8edb 100644 --- a/example_manager_member_counts.py +++ b/example_manager_member_counts.py @@ -8,7 +8,7 @@ import pprint from pathlib import Path -import britishcycling_clubs as bc +from britishcycling_clubs import get_manager_member_counts CONFIG_FILE = "config.ini" @@ -21,7 +21,7 @@ with Path.open(config_filepath, encoding="utf-8") as file: config.read_file(file) -member_counts = bc.get_manager_member_counts( +member_counts = get_manager_member_counts( config["club"]["id"], config["club"]["username"], config["club"]["password"], diff --git a/example_profile_info.py b/example_profile_info.py index e4c55e5..0322037 100644 --- a/example_profile_info.py +++ b/example_profile_info.py @@ -7,7 +7,7 @@ import pprint from pathlib import Path -import britishcycling_clubs as bc +from britishcycling_clubs import get_profile_info CONFIG_FILE = "config.ini" @@ -16,5 +16,5 @@ with Path.open(config_filepath, encoding="utf-8") as file: config.read_file(file) -info = bc.get_profile_info(config["club"]["id"]) +info = get_profile_info(config["club"]["id"]) pprint.pprint(info)