Commit 666ef366 authored by ibuler's avatar ibuler

[Bugfix] 修复session不显示在线的问题

parent 28d029a5
......@@ -37,7 +37,7 @@ def delete_terminal_status_period():
def clean_orphan_session():
active_sessions = Session.objects.filter(is_finished=False)
for session in active_sessions:
if not session.is_active():
if session.is_active():
continue
session.is_finished = True
session.date_end = timezone.now()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment