diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2023-04-28 13:11:44 +0100 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2023-04-28 13:11:44 +0100 |
commit | 5dd5ed8757c36a91e5031a3a55ea8a4291714691 (patch) | |
tree | a9426e13aa051248c418b98dfbc10b6f403e1b9c /insinuations.py | |
parent | 43ba613b9e1ea9dbf6f94361d43418c91c8c0785 (diff) | |
download | UKGenderPayGap-5dd5ed8757c36a91e5031a3a55ea8a4291714691.tar.gz UKGenderPayGap-5dd5ed8757c36a91e5031a3a55ea8a4291714691.zip |
Added searching for businesses
Diffstat (limited to 'insinuations.py')
-rw-r--r-- | insinuations.py | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/insinuations.py b/insinuations.py index a94607b..282b93e 100644 --- a/insinuations.py +++ b/insinuations.py @@ -70,13 +70,12 @@ def lookup_company(company_number): return company if __name__ == "__main__": - # if not os.path.exists(".docker"): - # import dotenv - # dotenv.load_dotenv(dotenv_path = "db.env") - # host = "srv.home" - # else: - # host = "db" - - # with database.PayGapDatabase(host = host) as db: - # get_sics(db) - print(lookup_company("02838054"))
\ No newline at end of file + if not os.path.exists(".docker"): + import dotenv + dotenv.load_dotenv(dotenv_path = "db.env") + host = "localhost" + else: + host = "db" + + with database.PayGapDatabase(host = host) as db: + print(db.search_company("University"))
\ No newline at end of file |