Guard coding for ";" line

This commit is contained in:
WQY\qiong
2022-11-18 20:29:20 +08:00
parent 1193b656a4
commit 1c63ee0d49
5 changed files with 15 additions and 0 deletions

View File

@@ -70,6 +70,9 @@ def set_time(name: str, cs: ChangeSet) -> ChangeSet:
def inp_in_time(section: list[str]) -> ChangeSet:
cs = g_update_prefix | { 'type' : 'time' }
for s in section:
if s.startswith(';'):
continue
line = s.upper().strip()
for key in get_time_schema('').keys():
if line.startswith(key):