Update user_info.py

This commit is contained in:
TPD94 2025-04-30 22:16:38 -04:00
parent 3f7538838d
commit 6b78ac120f

View File

@ -13,7 +13,7 @@ def user_info():
return jsonify({'message': 'False'}), 400 return jsonify({'message': 'False'}), 400
try: try:
base_path = os.path.join(os.getcwd(), 'configs', 'CDMs', username) base_path = os.path.join(os.getcwd(), 'configs', 'CDMs', username.lower())
pr_files = [os.path.basename(f) for f in glob.glob(os.path.join(base_path, 'PR', '*.prd'))] pr_files = [os.path.basename(f) for f in glob.glob(os.path.join(base_path, 'PR', '*.prd'))]
wv_files = [os.path.basename(f) for f in glob.glob(os.path.join(base_path, 'WV', '*.wvd'))] wv_files = [os.path.basename(f) for f in glob.glob(os.path.join(base_path, 'WV', '*.wvd'))]