diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 806862d..559f772 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,12 +4,11 @@
-
+
+
+
-
-
-
@@ -58,15 +57,15 @@
- {
- "keyToString": {
- "DefaultHtmlFileTemplate": "HTML File",
- "RunOnceActivity.OpenProjectViewOnStart": "true",
- "RunOnceActivity.ShowReadmeOnStart": "true",
- "last_opened_file_path": "D:/Program Files/Python310/Scripts/pyuic5.exe",
- "settings.editor.selected.configurable": "reference.settings.ide.settings.new.ui"
+
+}]]>
@@ -452,7 +451,14 @@
1698765961025
-
+
+ 1698850498765
+
+
+
+ 1698850498765
+
+
@@ -508,7 +514,8 @@
-
+
+
diff --git a/app/Ui/contact/analysis/charts.py b/app/Ui/contact/analysis/charts.py
index 7851afb..0f1d89f 100644
--- a/app/Ui/contact/analysis/charts.py
+++ b/app/Ui/contact/analysis/charts.py
@@ -244,8 +244,12 @@ def sport(username):
date.append(t)
except:
continue
- df = pd.DataFrame({'ranks': ranks, 'score': steps, 'date': date}, index=date)
- months = pd.date_range(date[0], date[-1], freq='M')
+ try:
+ # todo 可能没有运动信息
+ df = pd.DataFrame({'ranks': ranks, 'score': steps, 'date': date}, index=date)
+ months = pd.date_range(date[0], date[-1], freq='M')
+ except:
+ months = []
tl = Timeline(init_opts=opts.InitOpts(width=f"{charts_width}px", height=f"{charts_height}px"))
tl.add_schema(is_auto_play=True)
for i in range(len(months) - 1):
diff --git a/app/Ui/contact/contact.py b/app/Ui/contact/contact.py
index d70f9bd..0e2cd09 100644
--- a/app/Ui/contact/contact.py
+++ b/app/Ui/contact/contact.py
@@ -258,6 +258,12 @@ class ContactController(QWidget, Ui_Dialog):
pass
def annual_report(self):
+ QMessageBox.warning(
+ self,
+ "提示",
+ "敬请期待"
+ )
+ return
self.report = report.ReportController(123)
self.report.show()
diff --git a/app/Ui/mainview.py b/app/Ui/mainview.py
index a40e3f0..c38d31d 100644
--- a/app/Ui/mainview.py
+++ b/app/Ui/mainview.py
@@ -27,7 +27,6 @@ class MainWinController(QMainWindow, mainwindow.Ui_MainWindow):
def __init__(self, username, parent=None):
super(MainWinController, self).__init__(parent)
self.setupUi(self)
- self.setWindowTitle('WeChat')
self.setWindowIcon(Icon.MainWindow)
self.Me = data.get_myinfo()
self.setAttribute(Qt.WA_AttributeCount)