updated logs and players page
This commit is contained in:
@@ -62,4 +62,23 @@ def log_settings_changed(setting_name):
|
||||
log_action(f"Setting '{setting_name}' was changed")
|
||||
|
||||
def log_files_cleaned(count):
|
||||
log_action(f"{count} unused files were cleaned from storage")
|
||||
log_action(f"{count} unused files were cleaned from storage")
|
||||
|
||||
# New logging functions for more detailed activities
|
||||
def log_player_added_to_group(player_name, group_name):
|
||||
log_action(f"Player '{player_name}' was added to group '{group_name}'")
|
||||
|
||||
def log_player_removed_from_group(player_name, group_name):
|
||||
log_action(f"Player '{player_name}' was removed from group '{group_name}'")
|
||||
|
||||
def log_player_unlocked(player_name):
|
||||
log_action(f"Player '{player_name}' was unlocked from its group")
|
||||
|
||||
def log_content_reordered(target_type, target_name):
|
||||
log_action(f"Content for {target_type} '{target_name}' was reordered")
|
||||
|
||||
def log_content_duration_changed(content_name, old_duration, new_duration, target_type, target_name):
|
||||
log_action(f"Duration for '{content_name}' changed from {old_duration}s to {new_duration}s in {target_type} '{target_name}'")
|
||||
|
||||
def log_content_added(content_name, target_type, target_name):
|
||||
log_action(f"Content '{content_name}' added to {target_type} '{target_name}'")
|
||||
Reference in New Issue
Block a user