From 4992296102de9434d6408398a93ed52425d6ef0e Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Thu, 3 Dec 2020 17:20:31 +0100 Subject: [PATCH] fix plot: sort by date --- src/langfingaz/plotMeetings.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/langfingaz/plotMeetings.py b/src/langfingaz/plotMeetings.py index 23ee3d0..db7d871 100644 --- a/src/langfingaz/plotMeetings.py +++ b/src/langfingaz/plotMeetings.py @@ -20,7 +20,11 @@ def plotMeetings(dataDir: Path = fileUtil.getProjectBaseDir().joinpath("data")): dataStr, t = loadData.loadData(file) meetings: List[Meeting] = parseMeetings.parseMeetingsData(dataStr) bbbStati.append(parseMeetings.BbbStatus(meetings, t)) - sorted(bbbStati, key=BbbStatus.getKey) + + # [print(x.pointOfTime) for x in bbbStati[-30:]] + + # sort by date (x-axis) + bbbStati = sorted(bbbStati, key=BbbStatus.getKey) image: Path = doPlotMeetings(bbbStati) print("saved image at " + str(image))