(20241218) Can now add tags to SMS messages while sending them, and small 'limit' bug fixed in listing mails where a huge no. of tokens are being sent.
This commit is contained in:
@@ -164,8 +164,9 @@ class PGPaymentListData(BaseModel):
|
||||
# ┗┛┗┻┗┗┗┻┗┻┗┗┗┛┛┗
|
||||
|
||||
@field_validator("tokenKeys", "tags", "paymentStatus", mode = "before")
|
||||
def ensure_list(cls, value):
|
||||
def ensure_unique_list(cls, value):
|
||||
if not isinstance(value, list): value = [value]
|
||||
value = list(set(value))
|
||||
return value
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user