diff --git a/.gitignore b/.gitignore index 46bcb64..5a99411 100644 Binary files a/.gitignore and b/.gitignore differ diff --git a/home/static/img/hacktober2025.svg b/home/static/img/hacktober2025.svg new file mode 100644 index 0000000..c0a9dbd --- /dev/null +++ b/home/static/img/hacktober2025.svg @@ -0,0 +1,183 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/home/templates/home/index.html b/home/templates/home/index.html index eb5ae6a..11dc819 100644 --- a/home/templates/home/index.html +++ b/home/templates/home/index.html @@ -174,22 +174,21 @@
-
-
- Github -
-
- -
-




Presents

+
+
+ Github
-
-

ContriHUB

-
-
+
+ +
+




Presents

+
+
+

ContriHUB

+
+
diff --git a/home/templates/home/{% static 'css/bootstrap.min.css' %} b/home/templates/home/{% static 'css/bootstrap.min.css' %} new file mode 100644 index 0000000..e69de29 diff --git a/home/views.py b/home/views.py index f7a0047..8c60a28 100644 --- a/home/views.py +++ b/home/views.py @@ -27,7 +27,6 @@ def home(request): @complete_profile_required def dashboard(request): - global issues_qs, domain, subdomain project_qs = Project.objects.all() issues_qs = Issue.objects.all() domains_qs = Domain.objects.all() @@ -47,7 +46,6 @@ def dashboard(request): @complete_profile_required def filter_by_domain(request, domain_pk): - global issues_qs, domain, subdomain subdomain = 'All' domain = Domain.objects.get(pk=domain_pk) project_qs = Project.objects.all() @@ -67,11 +65,12 @@ def filter_by_domain(request, domain_pk): @complete_profile_required def filter_by_subdomain(request, subdomain_pk): - global issues_qs, domain, subdomain subdomain = SubDomain.objects.get(pk=subdomain_pk) + domain = 'All' project_qs = Project.objects.all() + issues_qs = Issue.objects.all() if domain != 'All': - issues_qs = Issue.objects.filter(project__domain=domain) + issues_qs = issues_qs.filter(project__domain=domain) issues_qs = issues_qs.filter(project__subdomain=subdomain) domains_qs = Domain.objects.all() subdomains_qs = SubDomain.objects.all() diff --git a/requirements.txt b/requirements.txt index 06a8a7c..9913e75 100644 --- a/requirements.txt +++ b/requirements.txt @@ -15,7 +15,8 @@ idna==3.3 mccabe==0.7.0 mysqlclient==2.2.0 oauthlib==3.2.0 -psycopg2==2.9.3 +psycopg2-binary==2.9.3 + pycodestyle==2.9.1 pycparser==2.21 pyflakes==2.5.0