Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion augur/util/repo_load_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def get_colum_by_label(label: str)-> Column:
return None, {"status": "Invalid order by"}

# Find the column named in the 'order_by', and get its asc() or desc() method
directive: function = getattr(get_colum_by_label(order_by), direction.lower())
directive: getattr(get_colum_by_label(order_by), direction.lower())
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the bogus ":" from the code.

Suggested change
directive: getattr(get_colum_by_label(order_by), direction.lower())
directive = getattr(get_colum_by_label(order_by), direction.lower())

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah thanks for pointing out


repos = repos.order_by(directive())

Expand Down
Loading