diff --git a/app/log/exception_handling.py b/app/log/exception_handling.py
index ea71536..7381eb8 100644
--- a/app/log/exception_handling.py
+++ b/app/log/exception_handling.py
@@ -40,10 +40,3 @@ def excepthook(exc_type, exc_value, traceback_):
# 调用原始的 excepthook,以便程序正常退出
sys.__excepthook__(exc_type, exc_value, traceback_)
-
-
-# 设置 excepthook
-sys.excepthook = excepthook
-result = None # 假设这里返回了一个 None
-for item in result: # 尝试迭代一个 None
- print(item)
\ No newline at end of file
diff --git a/app/ui/contact/contactInfo.py b/app/ui/contact/contactInfo.py
index 15b06d9..75d00b8 100644
--- a/app/ui/contact/contactInfo.py
+++ b/app/ui/contact/contactInfo.py
@@ -71,7 +71,7 @@ class ContactInfo(QWidget, Ui_Form):
self.report_thread = ReportThread(self.contact)
# self.report_thread.okSignal.connect(lambda x: QDesktopServices.openUrl(QUrl("http://127.0.0.1:21314")))
self.report_thread.start()
- QDesktopServices.openUrl(QUrl("http://127.0.0.1:21314/charts"))
+ QDesktopServices.openUrl(QUrl(f"http://127.0.0.1:21314/charts/{self.contact.wxid}"))
def annual_report(self):
date_range = None
@@ -95,9 +95,8 @@ class ContactInfo(QWidget, Ui_Form):
self.contact.save_avatar()
Me().save_avatar()
self.report_thread = ReportThread(self.contact, time_range)
- self.report_thread.okSignal.connect(lambda x: QDesktopServices.openUrl(QUrl("http://127.0.0.1:21314")))
self.report_thread.start()
- QDesktopServices.openUrl(QUrl("http://127.0.0.1:21314/christmas"))
+ QDesktopServices.openUrl(QUrl(f"http://127.0.0.1:21314/christmas/{self.contact.wxid}"))
def emotionale_Analysis(self):
QDesktopServices.openUrl(QUrl("https://memotrace.lc044.love/"))
diff --git a/app/web_ui/templates/charts.html b/app/web_ui/templates/charts.html
index 0339fc1..dc2a2cf 100644
--- a/app/web_ui/templates/charts.html
+++ b/app/web_ui/templates/charts.html
@@ -58,7 +58,19 @@ setInterval(getRTime, 1000);
-
-
-