In progress

This commit is contained in:
2024-05-14 09:48:25 +02:00
parent da789b3306
commit 54c5943180
5 changed files with 41 additions and 26 deletions

View File

@ -38,4 +38,4 @@ class AskModel(Model):
# return if the asker ask the asked to play a game
def is_asked(self, asker_id, asked_id):
return AskModel.objects.get(asker_id=asker_id, asked_id=asked_id) is not None
return AskModel.objects.filter(asker_id=asker_id, asked_id=asked_id).first() is not None