feat: task edition in front end
TS Lint / ESLint (push) Successful in 50s
Python Lint CI / ruff-format-check (push) Successful in 1m33s
Python Lint CI / ty (push) Successful in 1m33s
Python Lint CI / ruff (push) Successful in 1m35s
TS Lint / Oxlint (push) Successful in 3m29s
TS Lint / TypeScript (push) Successful in 3m7s
TS Lint / ESLint (push) Successful in 50s
Python Lint CI / ruff-format-check (push) Successful in 1m33s
Python Lint CI / ty (push) Successful in 1m33s
Python Lint CI / ruff (push) Successful in 1m35s
TS Lint / Oxlint (push) Successful in 3m29s
TS Lint / TypeScript (push) Successful in 3m7s
This commit is contained in:
+1
-1
@@ -43,5 +43,5 @@ class Task(AbstractModel):
|
||||
"previous_check_date",
|
||||
]:
|
||||
if field in data:
|
||||
out_data[field] = data["field"]
|
||||
out_data[field] = data[field]
|
||||
return out_data
|
||||
|
||||
@@ -64,6 +64,7 @@ class Server(gunicorn.app.base.BaseApplication):
|
||||
try:
|
||||
task = await Task.get(id=task_uuid)
|
||||
await task.update_from_dict(parsed_data)
|
||||
await task.save()
|
||||
return task.serialize()
|
||||
except tortoise.exceptions.ValidationError:
|
||||
flask.abort(400)
|
||||
|
||||
Reference in New Issue
Block a user