Skip to content
Snippets Groups Projects
Commit 185cf44c authored by thomaswoehlke's avatar thomaswoehlke
Browse files

work

parent b411099e
No related branches found
No related tags found
2 merge requests!161Issue 66 attempt 01,!160Issue 66 attempt 01
......@@ -72,7 +72,7 @@ class CommonDateReported(db.Model):
@classmethod
def remove_all(cls):
for one in cls.get_all():
db.session.delete(one).cascade()
db.session.delete(one)
db.session.commit()
return None
......@@ -140,7 +140,7 @@ class CommonRegion(db.Model):
@classmethod
def remove_all(cls):
for one in cls.get_all():
db.session.delete(one).cascade()
db.session.delete(one)
db.session.commit()
return None
......
......@@ -19,7 +19,7 @@ class EuropeDataImportTable(db.Model):
@classmethod
def remove_all(cls):
for one in cls.get_all():
db.session.delete(one).cascade()
db.session.delete(one)
db.session.commit()
return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment