You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fdc0f0f
Browse filesBrowse the repository at this point in the historyBrowse files
returnto_static_channel_response(f"Invalid position {position}. Please provide a position between 1 and {max_position}.")
137
+
138
+
ifcurrent_posisnotNoneandposition==current_pos:
139
+
returnto_static_channel_response(f"{make_tag(user_id)} is already at position {position} in {get_queue_designation(queue_id)}.\n{pretty_queue(queue_id)}")
140
+
141
+
ifcurrent_posisnotNone:
142
+
queues[queue_id].pop(current_pos-1)
143
+
queues[queue_id].insert(position-1, user_id)
144
+
message=f"{make_tag(user_id)} jumped from position {current_pos} to position {position} in {get_queue_designation(queue_id)}.\n{pretty_queue(queue_id)}"
145
+
else:
146
+
# User is not in queue so just insert them at the requested position
0 commit comments