diff options
| author | Bobby <[email protected]> | 2022-11-21 23:10:23 -0500 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-11-21 23:10:23 -0500 |
| commit | effa0acbea7bd444fb772fec944db769dd65295b (patch) | |
| tree | 4d2a1bb0342d3dd0e61a73c2d36d4ae8f15280b3 | |
| parent | 69285b5845f6863f3828ae92affa54f633498959 (diff) | |
| download | thatcomputerscientist-effa0acbea7bd444fb772fec944db769dd65295b.tar.xz thatcomputerscientist-effa0acbea7bd444fb772fec944db769dd65295b.zip | |
filter repos regardless of condition
| -rw-r--r-- | dev_status/views.py | 3 |
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)] |
