Skip to content

Commit

Permalink
notepad: Remove reload parameter.
Browse files Browse the repository at this point in the history
- Addresses #15
  - But leaves the underlying problem the parameter solved unresolved.
  • Loading branch information
NickSto committed Aug 31, 2022
1 parent 19794be commit 7596a90
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions notepad/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,8 @@ def view(request, page_name):
return HttpResponse('\n\n'.join(contents), content_type=settings.PLAINTEXT)
else:
links = collections.OrderedDict()
randomness = rand.randint(1, 1000000)
links['☑ Select all'] = str(params.but_with(select='all', reload=randomness))
links['□ Select none'] = str(params.but_with(select='none', reload=randomness))
links['☑ Select all'] = str(params.but_with(select='all'))
links['□ Select none'] = str(params.but_with(select='none'))
if is_admin:
if params['admin']:
links['Admin off'] = str(params.but_with(admin=False))
Expand Down

0 comments on commit 7596a90

Please sign in to comment.