From b290c8b55f93b32a98ae9b56f958135caa12803f Mon Sep 17 00:00:00 2001 From: Burathar Date: Tue, 21 Jul 2020 13:37:59 +0200 Subject: [PATCH] clarify owned_by docstring --- app/models/objective.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/objective.py b/app/models/objective.py index 8389689..c75a8f3 100644 --- a/app/models/objective.py +++ b/app/models/objective.py @@ -26,7 +26,7 @@ class Objective(db.Model): self.hash = token_hex(16) def owned_by(self, user): - '''given user is an owner of a game object is part of''' + '''Returns True if given user is an owner of a game object is part of''' return user in [gameplayer.user for gameplayer in self.game.players if gameplayer.role == Role.owner] class ObjectiveMinimalEncoder(JSONEncoder):