Skip to content

Commit 1d254e1

Browse files
committed
INTEGRITY: Add user details in manual merge log.
1 parent bf65cb0 commit 1d254e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fileset.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import json
1414
import html as html_lib
1515
import os
16+
import getpass
1617
from pagination import create_page
1718
import difflib
1819
from db_functions import (
@@ -1340,7 +1341,8 @@ def execute_merge(id):
13401341

13411342
delete_original_fileset(source_id, connection)
13421343
category_text = "Manually Merged"
1343-
log_text = f"Manually merged Fileset:{source_id} with Fileset:{target_id}."
1344+
user = f"cli:{getpass.getuser()}"
1345+
log_text = f"Manually merged Fileset:{source_id} with Fileset:{target_id} by user: {user}."
13441346
create_log(category_text, "Moderator", log_text, connection)
13451347

13461348
query = """

0 commit comments

Comments
 (0)