fix plot: sort by date

This commit is contained in:
Daniel Langbein 2020-12-03 17:20:31 +01:00
parent 45bb8f92cc
commit 4992296102

View File

@ -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))