Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 17, 2024
1 parent adf59ac commit 187c459
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions corpus/electrika/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ def index(request):
@login_required
@module_enabled(module_name="electrika")
def register(request):
next_param = request.GET.get('next', '/')
request.session['registration_next'] = next_param

next_param = request.GET.get("next", "/")
request.session["registration_next"] = next_param

config = ModuleConfiguration.objects.get(module_name="electrika").module_config

reg_start_datetime, reg_end_datetime = (
Expand Down Expand Up @@ -505,4 +505,4 @@ def delete_announcement(request, pk):
announcement = Announcement.objects.get(pk=pk)
announcement.delete()
messages.success(request, "Successfully deleted announcement!")
return redirect("electrika_announcements")
return redirect("electrika_announcements")

0 comments on commit 187c459

Please sign in to comment.