From a5aec4e3cd02ce001468cf9e5bc5d1a96ede7a54 Mon Sep 17 00:00:00 2001 From: Samuele Lenticchia Date: Tue, 30 Apr 2024 12:29:18 +0200 Subject: [PATCH] AVB-653: Fix isinstance tuple notation --- livestyled/models/ticket.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/livestyled/models/ticket.py b/livestyled/models/ticket.py index 119af19..e6384a3 100644 --- a/livestyled/models/ticket.py +++ b/livestyled/models/ticket.py @@ -334,13 +334,13 @@ def create_new( if isinstance(user, (str, int)): user = User.placeholder(id=user) ticket._user = user - if isinstance(sharer, (str or int)): + if isinstance(sharer, (str, int)): sharer = User.placeholder(id=sharer) ticket._sharer = sharer - if isinstance(redeemer, (str or int)): + if isinstance(redeemer, (str, int)): redeemer = User.placeholder(id=redeemer) ticket._redeemer = redeemer - if isinstance(parent_ticket, (str or int)): + if isinstance(parent_ticket, (str, int)): parent_ticket = Ticket.placeholder(id=parent_ticket) ticket._parent_ticket = parent_ticket return ticket