修复部分bug

This commit is contained in:
shuaikangzhou 2023-11-01 23:38:58 +08:00
parent 5275a6aa91
commit 11ce6e0ecd
4 changed files with 33 additions and 17 deletions

View File

@ -4,12 +4,11 @@
<option name="autoReloadType" value="SELECTIVE" /> <option name="autoReloadType" value="SELECTIVE" />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="84e65474-7da9-466d-baf3-cc88dde3ffdd" name="变更" comment="重构一些class删除一些不必要的文件"> <list default="true" id="84e65474-7da9-466d-baf3-cc88dde3ffdd" name="变更" comment="用stackedWidget实现导航栏">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Ui/contact/analysis/charts.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/Ui/contact/analysis/charts.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Ui/contact/contact.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/Ui/contact/contact.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Ui/mainview.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/Ui/mainview.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/app/Ui/mainview.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/Ui/mainview.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Ui/mainwindow.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/Ui/mainwindow.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/Ui/mainwindow.ui" beforeDir="false" afterPath="$PROJECT_DIR$/app/Ui/mainwindow.ui" afterDir="false" />
<change beforePath="$PROJECT_DIR$/main.spec" beforeDir="false" afterPath="$PROJECT_DIR$/main.spec" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -58,15 +57,15 @@
<option name="hideEmptyMiddlePackages" value="true" /> <option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" /> <option name="showLibraryContents" value="true" />
</component> </component>
<component name="PropertiesComponent">{ <component name="PropertiesComponent"><![CDATA[{
&quot;keyToString&quot;: { "keyToString": {
&quot;DefaultHtmlFileTemplate&quot;: &quot;HTML File&quot;, "DefaultHtmlFileTemplate": "HTML File",
&quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;, "RunOnceActivity.OpenProjectViewOnStart": "true",
&quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;, "RunOnceActivity.ShowReadmeOnStart": "true",
&quot;last_opened_file_path&quot;: &quot;D:/Program Files/Python310/Scripts/pyuic5.exe&quot;, "last_opened_file_path": "D:/Program Files/Python310/Scripts/pyuic5.exe",
&quot;settings.editor.selected.configurable&quot;: &quot;reference.settings.ide.settings.new.ui&quot; "settings.editor.selected.configurable": "preferences.pluginManager"
} }
}</component> }]]></component>
<component name="RecentsManager"> <component name="RecentsManager">
<key name="MoveFile.RECENT_KEYS"> <key name="MoveFile.RECENT_KEYS">
<recent name="D:\Project\PythonProject\WeChatMsg\app\Ui" /> <recent name="D:\Project\PythonProject\WeChatMsg\app\Ui" />
@ -452,7 +451,14 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1698765961025</updated> <updated>1698765961025</updated>
</task> </task>
<option name="localTasksCounter" value="37" /> <task id="LOCAL-00037" summary="用stackedWidget实现导航栏">
<created>1698850498765</created>
<option name="number" value="00037" />
<option name="presentableId" value="LOCAL-00037" />
<option name="project" value="LOCAL" />
<updated>1698850498765</updated>
</task>
<option name="localTasksCounter" value="38" />
<servers /> <servers />
</component> </component>
<component name="UnknownFeatures"> <component name="UnknownFeatures">
@ -508,7 +514,8 @@
<MESSAGE value="修改部分UI" /> <MESSAGE value="修改部分UI" />
<MESSAGE value="update readme" /> <MESSAGE value="update readme" />
<MESSAGE value="重构一些class删除一些不必要的文件" /> <MESSAGE value="重构一些class删除一些不必要的文件" />
<option name="LAST_COMMIT_MESSAGE" value="重构一些class删除一些不必要的文件" /> <MESSAGE value="用stackedWidget实现导航栏" />
<option name="LAST_COMMIT_MESSAGE" value="用stackedWidget实现导航栏" />
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="true" /> <option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="true" />
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="true" /> <option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="true" />
</component> </component>

View File

@ -244,8 +244,12 @@ def sport(username):
date.append(t) date.append(t)
except: except:
continue continue
df = pd.DataFrame({'ranks': ranks, 'score': steps, 'date': date}, index=date) try:
months = pd.date_range(date[0], date[-1], freq='M') # 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 = Timeline(init_opts=opts.InitOpts(width=f"{charts_width}px", height=f"{charts_height}px"))
tl.add_schema(is_auto_play=True) tl.add_schema(is_auto_play=True)
for i in range(len(months) - 1): for i in range(len(months) - 1):

View File

@ -258,6 +258,12 @@ class ContactController(QWidget, Ui_Dialog):
pass pass
def annual_report(self): def annual_report(self):
QMessageBox.warning(
self,
"提示",
"敬请期待"
)
return
self.report = report.ReportController(123) self.report = report.ReportController(123)
self.report.show() self.report.show()

View File

@ -27,7 +27,6 @@ class MainWinController(QMainWindow, mainwindow.Ui_MainWindow):
def __init__(self, username, parent=None): def __init__(self, username, parent=None):
super(MainWinController, self).__init__(parent) super(MainWinController, self).__init__(parent)
self.setupUi(self) self.setupUi(self)
self.setWindowTitle('WeChat')
self.setWindowIcon(Icon.MainWindow) self.setWindowIcon(Icon.MainWindow)
self.Me = data.get_myinfo() self.Me = data.get_myinfo()
self.setAttribute(Qt.WA_AttributeCount) self.setAttribute(Qt.WA_AttributeCount)