Skip to content

Commit

Permalink
Refactor code for improved readability and consistency in formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
DonnieBLT committed Jan 3, 2025
1 parent f0b69ab commit 81caec3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion website/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def check_status(request):
print(f"OpenAI API Error: {e}")

# Memory usage checks
if CHECK_MEMORY and settings.DEBUG:
if CHECK_MEMORY:
print("Getting memory usage information...")
tracemalloc.start()

Expand Down Expand Up @@ -274,6 +274,9 @@ def github_callback(request):
return safe_redirect_allowed(url, ALLOWED_HOSTS)


s


def google_callback(request):
ALLOWED_HOSTS = ["accounts.google.com"]
params = urllib.parse.urlencode(request.GET)
Expand Down

0 comments on commit 81caec3

Please sign in to comment.