Skip to content

Commit

Permalink
[Feat] clean and test the project
Browse files Browse the repository at this point in the history
  • Loading branch information
zakarm committed Jul 13, 2024
1 parent 5b1f071 commit 696fb8a
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

- Test backend for 500 server error
- Ball speed
1 change: 0 additions & 1 deletion app/back-end/chat/apps.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from django.apps import AppConfig


class ChatConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'chat'
1 change: 0 additions & 1 deletion app/back-end/dashboards/apps.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from django.apps import AppConfig


class DashboardsConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'dashboards'
1 change: 1 addition & 0 deletions app/back-end/dashboards/tests.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# from django.test import TestCase

# Create your tests here.
1 change: 0 additions & 1 deletion app/back-end/dashboards/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ def get_tackles(obj):
tackles_as_user_two = Match.objects.filter(user_two=obj).aggregate(Sum('tackle_user_two'))['tackle_user_two__sum']
return (tackles_as_user_one or 0) + (tackles_as_user_two or 0)


def get_scores(obj):
scores_as_user_one = Match.objects.filter(user_one=obj).aggregate(Sum('score_user_one'))['score_user_one__sum']
scores_as_user_two = Match.objects.filter(user_two=obj).aggregate(Sum('score_user_two'))['score_user_two__sum']
Expand Down
5 changes: 0 additions & 5 deletions app/front-end/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,3 @@ RUN npm run build
EXPOSE 3000

CMD ["npm", "run", "dev"]

#npm install --package-lock
#npm i --package-lock-only
#npm prune
#npm dedupe

0 comments on commit 696fb8a

Please sign in to comment.