fix gen cond

This commit is contained in:
Pakin 2023-10-03 13:55:47 +07:00
parent 465484902f
commit 6254007b3c

View file

@ -265,11 +265,12 @@
menu_color_font = None
desc_color_font = None
# pepween special case
sppromo = pd_code_2.split("-") if pd_code_2 != "##-##-##-####" else pd_code_3.split("-")
if int(sppromo[len(sppromo) - 1][2:]) > 52 and int(sppromo[len(sppromo) - 1][2:]) < 67:
menu_color_font = '0xFFFFFF'
desc_color_font = '0xFFFFFF'
if (sppromo[1] == "99") and ("#" not in pd_code_2 or "#" not in pd_code_3):
if int(sppromo[len(sppromo) - 1][2:]) > 52 and int(sppromo[len(sppromo) - 1][2:]) < 67:
menu_color_font = '0xFFFFFF'
desc_color_font = '0xFFFFFF'
if spl[1] != "None":