From 33805fd903e3dbc41e98dc6efbb4bea03cc185d0 Mon Sep 17 00:00:00 2001 From: ruidajo Date: Wed, 25 May 2022 12:31:53 -0500 Subject: [PATCH] Modifying export overview LaTex with automated weeks. --- .../instance/exportOverviewReportLatex.st | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Socialmetrica.package/NitterUser.class/instance/exportOverviewReportLatex.st b/Socialmetrica.package/NitterUser.class/instance/exportOverviewReportLatex.st index 282e877..7fd6d70 100644 --- a/Socialmetrica.package/NitterUser.class/instance/exportOverviewReportLatex.st +++ b/Socialmetrica.package/NitterUser.class/instance/exportOverviewReportLatex.st @@ -1,5 +1,11 @@ accessing exportOverviewReportLatex - self exportOverviewReportLatexWithBars: 9. + | weeks floor divisions | + weeks := ((self newestTweet created - self oldestTweet created) days / 7). + floor := weeks floor. + (weeks - floor) > 0.4 + ifTrue: [ divisions := floor ] + ifFalse: [ divisions := floor + 1 ]. + self exportOverviewReportLatexWithBars: divisions. ^ self folder \ No newline at end of file