feat: add doctor and specialty management modules with full CRUD support and database seeding
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
with open('src/main/resources/templates/doctor.html', 'r', encoding='utf-8') as f:
|
||||
text = f.read()
|
||||
|
||||
import re
|
||||
# Find the start of the dropdown buttons container
|
||||
match = re.search(r'--Theo chuyên khoa--.*?</div>', text, re.DOTALL)
|
||||
if match:
|
||||
start_idx = text.rfind('<button', 0, match.start())
|
||||
end_idx = text.find('</button>', match.end()) + 9
|
||||
print(text[start_idx:end_idx + 1000]) # Print the button and following content
|
||||
|
||||
Reference in New Issue
Block a user