Skip to content

Commit

Permalink
Update repository sync
Browse files Browse the repository at this point in the history
  • Loading branch information
arkid15r committed Jan 9, 2025
1 parent 33b769b commit fb541fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion backend/apps/core/models/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import logging

from django.conf import settings
from django.db import models
from django.template.defaultfilters import slugify

Expand Down Expand Up @@ -37,7 +38,8 @@ def get_text(key):
try:
return Prompt.objects.get(key=key).text
except Prompt.DoesNotExist:
logger.exception("Prompt with key '%s' does not exist.", key)
if settings.OPEN_AI_SECRET_KEY != "None": # noqa: S105
logger.exception("Prompt with key '%s' does not exist.", key)

@staticmethod
def get_github_issue_hint():
Expand Down
2 changes: 1 addition & 1 deletion backend/apps/github/models/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def from_github(
}

# License.
self.license = gh_repository.license.name if gh_repository.license else ""
self.license = gh_repository.license.spdx_id if gh_repository.license else ""

# Fetch project metadata from funding.yml file.
try:
Expand Down

0 comments on commit fb541fd

Please sign in to comment.