Work on sort of ressults using the priorty and sort fields.
This commit is contained in:
@@ -644,7 +644,7 @@ def get_event_meeting_rec_list(
|
||||
{sql_archived}
|
||||
{sql_hidden}
|
||||
{sql_enabled}
|
||||
ORDER BY `event`.priority DESC, `event`.sort ASC, `event`.updated_on DESC, `event`.created_on DESC
|
||||
ORDER BY `event`.priority DESC, -`event`.sort DESC, `event`.updated_on DESC, `event`.created_on DESC
|
||||
{sql_limit};
|
||||
"""
|
||||
elif conference and (organization_id or person_id or user_id): # If it is a conference then organization, person, and user are queried as participants (not the owner/organizer)
|
||||
@@ -665,7 +665,7 @@ def get_event_meeting_rec_list(
|
||||
{sql_archived}
|
||||
{sql_hidden}
|
||||
{sql_enabled}
|
||||
ORDER BY `event`.priority DESC, `event`.sort ASC, `event`.updated_on DESC, `event`.created_on DESC
|
||||
ORDER BY `event`.priority DESC, -`event`.sort DESC, `event`.updated_on DESC, `event`.created_on DESC
|
||||
{sql_limit};
|
||||
"""
|
||||
log.debug(sql)
|
||||
|
||||
Reference in New Issue
Block a user