Skip to content

Commit b0cb5f3

Browse files
committed
remove imports
1 parent 611f21c commit b0cb5f3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

reflex/sitemap.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from fastapi import Response
66
from xml.etree.ElementTree import Element, SubElement, tostring
77
from xml.dom import minidom
8-
import reflex as rx
98

109

1110
def generate_xml(links: List[Dict[str, Any]]) -> str:
@@ -24,7 +23,6 @@ def generate_xml(links: List[Dict[str, Any]]) -> str:
2423

2524

2625
def generate_sitemap(app: "rx.App") -> str:
27-
import reflex as rx
2826

2927
links = []
3028
for route, component in app.pages.items():
@@ -56,7 +54,6 @@ def generate_sitemap(app: "rx.App") -> str:
5654

5755

5856
async def serve_sitemap(app: "rx.App") -> Response:
59-
import reflex as rx
6057

6158
sitemap_content = generate_sitemap(app)
6259
domain = get_config().deploy_url or "http://localhost:3000"

0 commit comments

Comments
 (0)