Skip to content

Commit

Permalink
Release 0.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Geuthur committed Sep 4, 2024
1 parent 1993426 commit 1bec651
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## \[0.1.9\] - 2024-09-05

### Fixed

- No Permission occurs if Data is Empty

### Moved

- Killstats Stats moved ip and Header moved down to Hall of Fame Header

## \[0.1.8\] - 2024-08-16

### Performance
Expand Down
2 changes: 1 addition & 1 deletion killstats/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Initialize the app"""

__version__ = "0.1.8"
__version__ = "0.1.9"
__title__ = "Killstats"

APP_NAME = "killstats"
Expand Down
2 changes: 1 addition & 1 deletion killstats/api/killboard/alliance/killboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def get_killstats(request, month, year, alliance_id: int):
def get_corporation_admin(request):
alliances = AlliancesAudit.objects.visible_to(request.user)

if not alliances:
if alliances is None:
return 403, "Permission Denied"

alliance_dict = {}
Expand Down
2 changes: 1 addition & 1 deletion killstats/api/killboard/corporation/killboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def get_corporation_killstats(request, month, year, corporation_id: int):
def get_corporation_admin(request):
corporations = CorporationsAudit.objects.visible_to(request.user)

if not corporations:
if corporations is None:
return 403, "Permission Denied"

corporation_dict = {}
Expand Down
7 changes: 4 additions & 3 deletions killstats/templates/killstats/killboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
{% endblock extra_css %}

{% block killstats_block %}
<!--Dashboard-->
{% include 'killstats/killboard/dashboard.html' with stats=stats %}
<br>
<!--Killstats-->
<div class="card bg-primary d-flex flex-row align-items-center justify-content-center">
<h3 id="currentMonthLink" class="page-header text-center">Killstats - {{ value|current_month }}</h3>
Expand All @@ -56,9 +59,7 @@ <h3 id="currentMonthLink" class="page-header text-center">Killstats - {{ value|c
</div>
</div>
<br>
<!--Dashboard-->
{% include 'killstats/killboard/dashboard.html' with stats=stats %}
<br>

<!--Hall-->
{% include 'killstats/killboard/hall.html' with shame=shame fame=fame %}
<br>
Expand Down

0 comments on commit 1bec651

Please sign in to comment.