(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:
2024-12-18 11:10:18 +05:30
parent c340ebcba5
commit b42da0dacb
8 changed files with 32 additions and 13 deletions
+2 -1
View File
@@ -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