mirror of
https://codeberg.org/langfingaz/bbb-status
synced 2024-12-23 00:36:05 +01:00
fix plot: sort by date
This commit is contained in:
parent
45bb8f92cc
commit
4992296102
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user