Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
fix: aimmo game tidy up + package update
Browse files Browse the repository at this point in the history
  • Loading branch information
dionizh committed Jan 17, 2022
1 parent 528b01d commit 226efa3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
10 changes: 2 additions & 8 deletions aimmo/templatetags/players_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,10 @@
register = template.Library()


@register.inclusion_tag("players/dropdown.html", takes_context=True)
def game_dropdown_list(context, base_url):
return get_user_playable_games(context, base_url)


def get_user_playable_games(context, base_url):
# Only called by teacher to create games table
user = context.request.user
if logged_in_as_student(user):
playable_games = user.userprofile.student.class_field.game
elif logged_in_as_teacher(user):
if logged_in_as_teacher(user):
playable_games = Game.objects.filter(
game_class__teacher=user.userprofile.teacher, is_archived=False
)
Expand Down
13 changes: 4 additions & 9 deletions game_frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2471,15 +2471,10 @@ caniuse-api@^3.0.0:
lodash.memoize "^4.1.2"
lodash.uniq "^4.5.0"

caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001181:
version "1.0.30001204"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001204.tgz#256c85709a348ec4d175e847a3b515c66e79f2aa"
integrity sha512-JUdjWpcxfJ9IPamy2f5JaRDCaqJOxDzOSKtbdx4rH9VivMd1vIzoPumsJa9LoMIi4Fx2BV2KZOxWhNkBjaYivQ==

caniuse-lite@^1.0.30001219:
version "1.0.30001233"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001233.tgz#b7cb4a377a4b12ed240d2fa5c792951a06e5f2c4"
integrity sha512-BmkbxLfStqiPA7IEzQpIk0UFZFf3A4E6fzjPJ6OR+bFC2L8ES9J8zGA/asoi47p8XDVkev+WJo2I2Nc8c/34Yg==
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001181, caniuse-lite@^1.0.30001219:
version "1.0.30001300"
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001300.tgz"
integrity sha512-cVjiJHWGcNlJi8TZVKNMnvMid3Z3TTdDHmLDzlOdIiZq138Exvo0G+G0wTdVYolxKb4AYwC+38pxodiInVtJSA==

capture-exit@^2.0.0:
version "2.0.0"
Expand Down

0 comments on commit 226efa3

Please sign in to comment.