We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4a85a1 commit edd0cbdCopy full SHA for edd0cbd
1 file changed
src/robusta/core/sinks/slack/preview/slack_sink_preview_params.py
@@ -20,15 +20,15 @@ def get_effective_template_name(self) -> str:
20
Otherwise, use 'legacy.j2' if template_style is legacy, else 'header.j2'.
21
"""
22
if self.slack_custom_templates and len(self.slack_custom_templates) == 1:
23
- return self.slack_custom_templates.keys()[0]
+ return next(iter(self.slack_custom_templates))
24
return "header.j2"
25
26
def get_custom_template(self) -> Optional[str]:
27
28
Returns the custom template string for the effective template name, if it exists.
29
30
31
- return self.slack_custom_templates.values()[0]
32
return None
33
34
0 commit comments