Skip to content

Commit

Permalink
remove utils stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
BinamB committed Apr 11, 2023
1 parent 047d208 commit e2f6f96
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions indexd/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,20 +191,6 @@ def migrate_database(driver, migrate_functions, current_schema_version, model):
s.add(schema_version)


def is_empty_database(driver):
"""
check if the database is empty or not
Args:
driver (object): an alias or index driver instance
Returns:
Boolean
"""
table_list = Inspector.from_engine(driver.engine).get_table_names()

return len(table_list) == 0


def drs_service_info_id_url_reversal(url):
"""
Reverse the domain name for drs service-info IDs
Expand Down

0 comments on commit e2f6f96

Please sign in to comment.