fix: fix incorrect attribute on group creation
created -> added
This commit is contained in:
parent
675a7341eb
commit
061705a5e4
1 changed files with 2 additions and 2 deletions
|
@ -45,8 +45,8 @@ def group_new() -> ResponseReturnValue:
|
||||||
group.group_name = form.group_name.data
|
group.group_name = form.group_name.data
|
||||||
group.description = form.description.data
|
group.description = form.description.data
|
||||||
group.eotk = form.eotk.data
|
group.eotk = form.eotk.data
|
||||||
group.created = datetime.utcnow()
|
group.added = datetime.now(tz=timezone.utc)
|
||||||
group.updated = datetime.utcnow()
|
group.updated = datetime.now(tz=timezone.utc)
|
||||||
try:
|
try:
|
||||||
db.session.add(group)
|
db.session.add(group)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue