This commit is contained in:
he
2026-09-21 17:08:46 +08:00
parent f55e9e474a
commit 4cad0902d6
2 changed files with 5 additions and 6 deletions
+4 -5
View File
@@ -17,9 +17,8 @@ def add_grade_dao(g,db):
try:
o1 = WlScore(**g)
db.add(o1)
except:
db.rollback()
return False
else:
db.commit()
return True
return o1
except Exception:
db.rollback()
return None