mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
warnings visualizaion is working again
This commit is contained in:
parent
81f5e98a8b
commit
36aee8395b
1 changed files with 4 additions and 12 deletions
|
|
@ -490,12 +490,8 @@ class PluginModel(QtGui.QStandardItemModel):
|
|||
new_records = result.get("records") or []
|
||||
if not has_warning:
|
||||
for record in new_records:
|
||||
if not hasattr(record, "levelname"):
|
||||
continue
|
||||
|
||||
if str(record.levelname).lower() in [
|
||||
"warning", "critical", "error"
|
||||
]:
|
||||
level_no = record.get("levelno")
|
||||
if level_no and level_no >= 30:
|
||||
new_flag_states[PluginStates.HasWarning] = True
|
||||
break
|
||||
|
||||
|
|
@ -789,12 +785,8 @@ class InstanceModel(QtGui.QStandardItemModel):
|
|||
new_records = result.get("records") or []
|
||||
if not has_warning:
|
||||
for record in new_records:
|
||||
if not hasattr(record, "levelname"):
|
||||
continue
|
||||
|
||||
if str(record.levelname).lower() in [
|
||||
"warning", "critical", "error"
|
||||
]:
|
||||
level_no = record.get("levelno")
|
||||
if level_no and level_no >= 30:
|
||||
new_flag_states[InstanceStates.HasWarning] = True
|
||||
break
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue