Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore: Added ordering_key to the Opinions index #5005

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

albertisfu
Copy link
Contributor

Let's restore the ordering_key to the opinions index once https://github.com/freelawproject/infrastructure/issues/269 is completed.

@albertisfu albertisfu requested a review from mlissner January 30, 2025 21:22
@@ -190,6 +190,7 @@ def midnight_pt_test(d: datetime.date) -> datetime.datetime:
"snippet": lambda x: (
x["snippet"] if x.get("snippet") else x["result"].plain_text or ""
),
"ordering_key": lambda x: x["result"].ordering_key,
Copy link

Choose a reason for hiding this comment

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

Semgrep identified an issue in your code:

return only makes sense inside a function

To resolve this comment:

🔧 No guidance has been designated for this issue. Fix according to your organization's approved methods.

💬 Ignore this finding

Leave a nosemgrep comment directly above or at the end of line 193 like so // nosemgrep: python.lang.maintainability.return.return-not-in-function

Take care to validate that this is not a true positive finding before ignoring it.
Learn more about ignoring code, files and folders here.

You can view more details about this finding in the Semgrep AppSec Platform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Blocked
Development

Successfully merging this pull request may close these issues.

1 participant