Skip to content

Commit

Permalink
fix: quality issues
Browse files Browse the repository at this point in the history
  • Loading branch information
qasimgulzar committed Nov 25, 2024
1 parent 466ce84 commit 005c29d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openedx/core/djangoapps/common_initialization/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ def _add_required_adapters():
if 'postgresql' in connection.vendor.lower():
from opaque_keys.edx.locator import CourseLocator
from psycopg2.extensions import QuotedString, register_adapter

def adapt_course_locator(course_locator):

return QuotedString(course_locator._to_string()) # lint-amnesty, pylint: disable=protected-access

# Register the adapter
Expand Down

0 comments on commit 005c29d

Please sign in to comment.