♻️ (game.py, signals.py): Refactor comparison operators for better readability
🔧 (apps.py): Import signals in ready method to ensure signals are loaded when the app starts 🔧 (pyproject.toml): Add PGH004 to lint ignore list to avoid linting errors related to PostgreSQL-specific code
This commit is contained in:
@@ -46,7 +46,6 @@ class GameEventResource(APIView):
|
||||
|
||||
def post(self, request, game_id):
|
||||
"""Creates a new event"""
|
||||
|
||||
try:
|
||||
game = Game.objects.get(pk=game_id)
|
||||
except Game.DoesNotExist:
|
||||
|
||||
Reference in New Issue
Block a user