mirror of https://github.com/Aidaho12/haproxy-wi
v7.3.2.0: Refactor user_id retrieval function call
The user id retrieval function, get_user_id_by_username, in the config module was refactored. The changes included the removal of unnecessary use of keyword argument on a function call. This change simplifies the code, making it more readable and easier to understand.pull/390/head
parent
04e2edf517
commit
8dedc459e1
|
@ -186,7 +186,7 @@ def _create_config_version(server_id: int, server_ip: str, service: str, config_
|
|||
roxywi_common.logging('Roxy-WI server', f'error: Cannot create diff config version: {e}', roxywi=1)
|
||||
|
||||
try:
|
||||
user = user_sql.get_user_id_by_username(login=login)
|
||||
user = user_sql.get_user_id_by_username(login)
|
||||
config_sql.insert_config_version(server_id, user.user_id, service, cfg, config_path, diff)
|
||||
except Exception as e:
|
||||
roxywi_common.logging('Roxy-WI server', f'error: Cannot insert config version: {e}', roxywi=1)
|
||||
|
|
Loading…
Reference in New Issue