aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-11-21 23:10:23 -0500
committerBobby <[email protected]>2022-11-21 23:10:23 -0500
commiteffa0acbea7bd444fb772fec944db769dd65295b (patch)
tree4d2a1bb0342d3dd0e61a73c2d36d4ae8f15280b3
parent69285b5845f6863f3828ae92affa54f633498959 (diff)
downloadthatcomputerscientist-effa0acbea7bd444fb772fec944db769dd65295b.tar.xz
thatcomputerscientist-effa0acbea7bd444fb772fec944db769dd65295b.zip
filter repos regardless of condition
-rw-r--r--dev_status/views.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/dev_status/views.py b/dev_status/views.py
index 19f83125..a869a653 100644
--- a/dev_status/views.py
+++ b/dev_status/views.py
@@ -23,8 +23,7 @@ def home(request):
if search != '':
search = search.lower()
repos = [repo for repo in repos if search in str(repo.name).lower() or search in str(repo.description).lower()]
- else:
- repos = [repo for repo in repos if 'luciferreeves' in str(repo.full_name).lower()]
+ repos = [repo for repo in repos if 'luciferreeves' in str(repo.full_name).lower()]
context['repo_length'] = len(repos)
context['repos'] = repos[(int(page) - 1) * int(items):int(page) * int(items)]