From ce79df72a8019f73a27482c3a05e272b473299d4 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Thu, 6 Jul 2023 13:44:37 +0800 Subject: Update roots.py --- docs/api/roots.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/api/roots.py b/docs/api/roots.py index eb126d7..13a4919 100644 --- a/docs/api/roots.py +++ b/docs/api/roots.py @@ -11,7 +11,7 @@ class handler(BaseHTTPRequestHandler): self.send_header('Content-type', 'application/json') self.end_headers() - with open(join(dir, '..', 'data', 'file.txt'), 'r', encoding='utf-8') as file: + with open(join(dir, '..', 'data', 'roots.txt'), 'r', encoding='utf-8') as file: lines = file.readlines() random_line = random.choice(lines) response = { -- cgit v1.2.3-70-g09d2