fix: fix incorrect attribute on group creation

created -> added
This commit is contained in:
Iain Learmonth 2024-12-06 14:48:07 +00:00
parent 675a7341eb
commit 061705a5e4

View file

@ -45,8 +45,8 @@ def group_new() -> ResponseReturnValue:
group.group_name = form.group_name.data
group.description = form.description.data
group.eotk = form.eotk.data
group.created = datetime.utcnow()
group.updated = datetime.utcnow()
group.added = datetime.now(tz=timezone.utc)
group.updated = datetime.now(tz=timezone.utc)
try:
db.session.add(group)
db.session.commit()