Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dropping table didn't commit
  • Loading branch information
proost committed Jan 10, 2018
1 parent f580aa0 commit 23f8b15
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions conekt/models/gene_families.py
Expand Up @@ -44,8 +44,10 @@ def __str__(self):
def drop_all_annotation():
try:
FamilyInterproAssociation.query.delete()
except Exception as _:
pass
db.session.commit()
except Exception as e:
db.session.rollback()
print(e)

def get_interpro_annotation(self):
families = self.families.all()
Expand Down

0 comments on commit 23f8b15

Please sign in to comment.