Fix: Campaign name is case sensitive

This commit is contained in:
LmeSzinc 2021-10-27 17:33:30 +08:00
parent 069e29226c
commit 4b7733c68e

View File

@ -135,6 +135,7 @@ class CampaignRun(UI):
Returns:
str, str: name, folder
"""
name = name.lower()
if name[0].isdigit():
name = 'campaign_' + name.lower().replace('-', '_')
if folder == 'event_20201126_cn' and name == 'vsp':