do not commit environment role updates unless an update happened
This commit is contained in:
parent
8754a74613
commit
a5009ec130
@ -92,7 +92,9 @@ class Environments(object):
|
|||||||
updated = True
|
updated = True
|
||||||
db.session.add(env_role)
|
db.session.add(env_role)
|
||||||
|
|
||||||
db.session.commit()
|
if updated:
|
||||||
|
db.session.commit()
|
||||||
|
|
||||||
return updated
|
return updated
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Loading…
x
Reference in New Issue
Block a user