Skip to content

Commit

Permalink
Replace occured_at with occurred_at
Browse files Browse the repository at this point in the history
See also: #7
  • Loading branch information
BECATRUE committed Nov 22, 2024
1 parent ef45dfb commit da8e55f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wlm_server/operation/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def get_running_status(ch: int) -> tuple[bool, bool]:
Tuple with WLM running status and target channel running
"""
latest_operations = (
Operation.objects.order_by('channel', 'user', '-occured_at').distinct('channel', 'user')
Operation.objects.order_by('channel', 'user', '-occurred_at').distinct('channel', 'user')
) # latest operations for each channel and user
is_wlm_running = any(op.on for op in latest_operations)
is_channel_running = any(op.channel.channel == ch and op.on for op in latest_operations)
Expand Down

0 comments on commit da8e55f

Please sign in to comment.