griffithlab / civicpy

A python interface for the CIViC db application
MIT License
8 stars 5 forks source link

refactor object retrieval from cache #48

Open ahwagner opened 5 years ago

ahwagner commented 5 years ago

Currently, _include_filter gets cached, and could mistakenly be retrieved from cache. Refactor calls to cache to always build new CivicRecord objects to prevent _include_filter (and other private variables) from propagating and potentially creating unintended behaviors.