import os

file_path = r'c:\Users\malab\OneDrive\Documents\Projects\nashaajobs-clone\custom_admin\templates\custom_admin\pages\subscriptions\payments_list.html'

with open(file_path, 'r', encoding='utf-8') as f:
    content = f.read()

# Replace targets
new_content = content.replace('{% if current_status==value %}', '{% if current_status == value %}')
new_content = new_content.replace('{% if current_plan_type==value %}', '{% if current_plan_type == value %}')

if new_content == content:
    print("No changes needed (already fixed?)")
else:
    with open(file_path, 'w', encoding='utf-8') as f:
        f.write(new_content)
    print("Fixed syntax errors in payments_list.html")
