Less indentation

merge-requests/30/head
Bob Mottram 2024-07-15 20:04:05 +01:00
parent d6cb1dbd46
commit f3d985dfa7
1 changed files with 10 additions and 9 deletions

View File

@ -793,7 +793,8 @@ def map_format_from_tagmaps_path(base_dir: str, path: str,
period_str2 = period_str.replace('Last ', '').lower() period_str2 = period_str.replace('Last ', '').lower()
endpoint_str = \ endpoint_str = \
'/tagmaps/' + tag_name + '-' + period_str2.replace(' ', '_') '/tagmaps/' + tag_name + '-' + period_str2.replace(' ', '_')
if path == endpoint_str: if path != endpoint_str:
continue
nickname = None nickname = None
if '/users/' in path: if '/users/' in path:
nickname = path.split('/users/')[1] nickname = path.split('/users/')[1]