Skip to content

Commit

Permalink
Update manager.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed May 1, 2019
1 parent 0f6646f commit 3b90470
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/bio2bel_pubchem/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Manager(AbstractManager):
"""Manager for Bio2BEL PubChem."""

module_name = MODULE_NAME
_base = Base
flask_admin_models = [Compound, Substance, SubstanceXref]

def __init__(self, *args, **kwargs):
Expand All @@ -25,10 +26,6 @@ def __init__(self, *args, **kwargs):
self.compounds = {}
self.substances = {}

@property
def _base(self):
return Base

def is_populated(self) -> bool:
"""Check if the database is already populated."""
return 0 < self.count_compounds()
Expand Down

0 comments on commit 3b90470

Please sign in to comment.