Skip to content

Commit

Permalink
Bugfix(web): 🐛 修复无法修改任务
Browse files Browse the repository at this point in the history
  • Loading branch information
a76yyyy committed Feb 10, 2024
1 parent 8681e97 commit 68aa0b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/handlers/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ async def post(self, taskid=None):
self.redirect('/my/')


class TaskEditHandler(BaseHandler):
class TaskEditHandler(TaskNewHandler):
@authenticated
async def get(self, taskid):
async def get(self, taskid): # pylint: disable=W0221
user = self.current_user
task = self.check_permission(await self.db.task.get(taskid, fields=('id', 'userid',
'tplid', 'disabled', 'note', 'retry_count', 'retry_interval')), 'w')
Expand Down

0 comments on commit 68aa0b7

Please sign in to comment.