From bae760a62fc6a480fbe615dff6a7de03c7fd6d1d Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Wed, 24 Jun 2020 09:13:09 +0200 Subject: Add formatter --- opendc/models/authorization.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'opendc/models/authorization.py') diff --git a/opendc/models/authorization.py b/opendc/models/authorization.py index 4c714e6d..7ec88e78 100644 --- a/opendc/models/authorization.py +++ b/opendc/models/authorization.py @@ -18,12 +18,7 @@ class Authorization(Model): def google_id_has_at_least(self, google_id, authorization_level): """Return True if the User has at least the given auth level over this Authorization.""" - authorization = Authorization.from_primary_key( - ( - User.from_google_id(google_id).id, - self.simulation_id - ) - ) + authorization = Authorization.from_primary_key((User.from_google_id(google_id).id, self.simulation_id)) if authorization is None: return False -- cgit v1.2.3