Replace "|" into "or" for Python 3.6 compatibility

This commit is contained in:
embar- 2024-10-13 09:36:34 +03:00 committed by GitHub
parent 5761f0ff13
commit 0fdb432635
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ def init(ctx, safeeyes_config, plugin_config):
'total_resets': 0,
}
session = context['session']['plugin'].get('healthstats', {}) | defaults
session = context['session']['plugin'].get('healthstats', {}) or defaults
if 'no_of_breaks' in session:
# Ignore old format session.
session = defaults