From d23892e4f54a20cb0767964ae61b12015a73aa80 Mon Sep 17 00:00:00 2001 From: Sebastian Proost Date: Wed, 10 Jan 2018 10:34:53 +0100 Subject: [PATCH] dropping table didn't commit --- conekt/models/gene_families.py | 1 + 1 file changed, 1 insertion(+) diff --git a/conekt/models/gene_families.py b/conekt/models/gene_families.py index a6eb833..8fd4b97 100644 --- a/conekt/models/gene_families.py +++ b/conekt/models/gene_families.py @@ -44,6 +44,7 @@ def __str__(self): def drop_all_annotation(): try: FamilyInterproAssociation.query.delete() + FamilyGOAssociation.query.delete() db.session.commit() except Exception as e: db.session.rollback()