Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 31, 2023
1 parent 69dc0e7 commit e9967af
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion plugins/auth_jupyterhub/fps_auth_jupyterhub/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,15 @@ async def _(
"Content-Type": "application/json",
}
last_activity = isoformat(datetime.utcnow())
task = asyncio.create_task(http_client.post(self.activity_url, headers=headers, json={"servers": {self.server_name: {"last_activity": last_activity}}}))
task = asyncio.create_task(
http_client.post(
self.activity_url,
headers=headers,
json={
"servers": {self.server_name: {"last_activity": last_activity}}
},
)
)
self.background_tasks.add(task)
task.add_done_callback(self.background_tasks.discard)
return user
Expand Down

0 comments on commit e9967af

Please sign in to comment.