File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 7474logger = logging .getLogger (__name__ )
7575
7676
77- UNRENDERABLE_MODEL_FIELDS = {"cron" , "description" }
78-
7977PROPERTIES = {"physical_properties" , "session_properties" , "virtual_properties" }
8078
8179RUNTIME_RENDERED_MODEL_FIELDS = {
8482 "merge_filter" ,
8583} | PROPERTIES
8684
87- CRON_ALIASES = {
85+ CRON_SHORTCUTS = {
8886 "@midnight" ,
8987 "@hourly" ,
9088 "@daily" ,
@@ -2782,7 +2780,9 @@ def render_field_value(value: t.Any) -> t.Any:
27822780
27832781 # We don't want to parse python model cron="@..." kwargs (e.g. @daily) into MacroVar
27842782 if (
2785- field == "cron" and isinstance (field_value , str ) and field_value .lower () in CRON_ALIASES
2783+ field == "cron"
2784+ and isinstance (field_value , str )
2785+ and field_value .lower () in CRON_SHORTCUTS
27862786 ) or field_value is None :
27872787 continue
27882788
You can’t perform that action at this time.
0 commit comments