Refactors corp_owners.py to use our own copy of the CCFS database instead of querying (and getting blocked by) the online CCFS portal.
Adds test.py in processors folder that's helpful for testing changes to corp_owners.py by comparing results with known results for buildings owned by Goodman Real Estate.
Addresses issue #17 for now, but would still be good to make a more robust test framework in the future.
Refactors `corp_owners.py` to use our own copy of the CCFS database instead of querying (and getting blocked by) the online CCFS portal.
Adds `test.py` in processors folder that's helpful for testing changes to `corp_owners.py` by comparing results with known results for buildings owned by Goodman Real Estate.
Addresses issue #17 for now, but would still be good to make a more robust test framework in the future.
It seems good idea to add .env to .gitignore if folks are going to be having that file.
Oh good point it somehow didn't get added to the commit, added the gitignore now.
> It seems good idea to add `.env` to `.gitignore` if folks are going to be having that file.
Oh good point it somehow didn't get added to the commit, added the gitignore now.
Yes it should good catch. I'd like to add another todo later to automate this process because slip ups like this happen, but my pip freeze command looks funky when trying to generate this file.
Yes it should good catch. I'd like to add another todo later to automate this process because slip ups like this happen, but my `pip freeze` command looks funky when trying to generate this file.
linnealovespie marked this conversation as resolved
@linnealovespie : I happened to be looking at this when working on my PR, and it seems like _get_potential_company_name_matches is now longer called so can be removed.
@linnealovespie : I happened to be looking at this when working on my PR, and it seems like `_get_potential_company_name_matches` is now longer called so can be removed.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Refactors
corp_owners.pyto use our own copy of the CCFS database instead of querying (and getting blocked by) the online CCFS portal.Adds
test.pyin processors folder that's helpful for testing changes tocorp_owners.pyby comparing results with known results for buildings owned by Goodman Real Estate.Addresses issue #17 for now, but would still be good to make a more robust test framework in the future.
It seems good idea to add
.envto.gitignoreif folks are going to be having that file.Oh good point it somehow didn't get added to the commit, added the gitignore now.
@@ -31,2 +31,4 @@minio==7.2.16pycryptodome==3.23.0dotenv==0.9.9python-dotenv==1.2.1Should
psycopg2be added here? I needed to manually install but maybe that was something with my setup.Yes it should good catch. I'd like to add another todo later to automate this process because slip ups like this happen, but my
pip freezecommand looks funky when trying to generate this file.I didn't give it the most thorough review, but looks good and doesn't seem risky.
@@ -225,4 +160,2 @@for owner in owner_list:owner = owner.strip() # Clean owner name slightlymatches = self._get_potential_company_name_matches(owner)temp_exact, temp_potential = self._separate_search_results(matches)@linnealovespie : I happened to be looking at this when working on my PR, and it seems like
_get_potential_company_name_matchesis now longer called so can be removed.