#!/usr/bin/env python
"""
Script to fix all service references in views.py
"""

def fix_service_references():
    with open('reports/views.py', 'r', encoding='utf-8') as f:
        content = f.read()
    
    # Fix the duplicate references
    content = content.replace('simple_simple_reports_service', 'simple_reports_service')
    
    # Write back the fixed content
    with open('reports/views.py', 'w', encoding='utf-8') as f:
        f.write(content)
    
    print("Fixed all service references!")

if __name__ == '__main__':
    fix_service_references()