def replace_desc(): with open('app/modules/sag/templates/detail.html', 'r', encoding='utf-8') as f: html = f.read() start_str = "" end_str = "" start_idx = html.find(start_str) end_idx = html.find(end_str) if start_idx == -1 or end_idx == -1: print("COULD NOT FIND ROWS") return new_desc = """
Ingen opgavebeskrivelse tilføjet endnu.