diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-04-05 17:01:31 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-04-05 17:01:31 +0200 |
| commit | c7d91693a6f3d7eb954ff3513ed63e54cb4c10ce (patch) | |
| tree | 9f9761727bbb5785b00541049228353b91cb46de /lessons.py | |
| parent | 658416b5cc107559e23fca751c73bcdaf590808f (diff) | |
| download | avail-lessons-c7d91693a6f3d7eb954ff3513ed63e54cb4c10ce.tar.gz avail-lessons-c7d91693a6f3d7eb954ff3513ed63e54cb4c10ce.zip | |
ignore pylint eval warning and use more expressive variable name
Diffstat (limited to 'lessons.py')
| -rwxr-xr-x | lessons.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -103,9 +103,10 @@ def format_period(period: webuntis.objects.PeriodObject, # Apply event_line_formats event_line_formats = config.get('event_line_formats', []) - for ev in period_evs: - if ev.summary in event_line_formats: - line = eval('f' + f'"{event_line_formats[ev.summary]}"') + for event in period_evs: + if event.summary in event_line_formats: + # Same eval reasoning as above. + line = eval('f' + f'"{event_line_formats[event.summary]}"') # pylint: disable=eval-used return line |
