Fixed minor snafu

This commit is contained in:
2024-11-24 07:16:36 +01:00
parent 5806cffb66
commit 62fd850f06
9 changed files with 117 additions and 212 deletions
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+109 -205
View File
File diff suppressed because one or more lines are too long
+4 -4
View File
@@ -2,13 +2,15 @@ Metadata-Version: 2.1
Name: drstats Name: drstats
Version: 1.3.37 Version: 1.3.37
Summary: dR stats Summary: dR stats
Home-page: UNKNOWN
Author: Retoor Author: Retoor
Author-email: retoor@molodetz.nl Author-email: retoor@molodetz.nl
License: MIT License: MIT
Platform: UNKNOWN
Requires-Python: >=3.7 Requires-Python: >=3.7
Description-Content-Type: text/markdown Description-Content-Type: text/markdown
Requires-Dist: aiohttp==3.10.10
Requires-Dist: dataset==1.6.2
Requires-Dist: matplotlib==3.9.2
Requires-Dist: requests==2.32.3
# dRStats # dRStats
@@ -54,5 +56,3 @@ If you type `dr.` in terminal and press tab you'll see all available apps auto c
4. `dr.rant_stats_per_day` exports graphs to export folder. don't forget to execute `dr.sync` first. 4. `dr.rant_stats_per_day` exports graphs to export folder. don't forget to execute `dr.sync` first.
5. `dr.rant_stats_per_hour` exports graphs to export folder. don't forget to execute `dr.sync` first. 5. `dr.rant_stats_per_hour` exports graphs to export folder. don't forget to execute `dr.sync` first.
6. `dr.rant_stats_per_weekday` exports graphs to export folder. don't forget to execute `dr.sync` first. 6. `dr.rant_stats_per_weekday` exports graphs to export folder. don't forget to execute `dr.sync` first.
-1
View File
@@ -5,4 +5,3 @@ dr.rant_stats_per_hour = drstats.statistics:rant_stats_per_hour
dr.rant_stats_per_weekday = drstats.statistics:rant_stats_per_weekday dr.rant_stats_per_weekday = drstats.statistics:rant_stats_per_weekday
dr.stats_all = drstats.statistics:rant_stats_all dr.stats_all = drstats.statistics:rant_stats_all
dr.sync = drstats.sync:sync dr.sync = drstats.sync:sync
Binary file not shown.
Binary file not shown.
+4 -2
View File
@@ -36,7 +36,8 @@ def dump():
) )
printr(text) printr(text)
with pathlib.Path("export/rants-" + user + ".txt").open("w") as f: with pathlib.Path("export/rants-" + user + ".txt").open("w") as f:
f.write(user, "said:```") f.write(user)
f.write(" said ")
f.write(text) f.write(text)
f.write(user, "```") f.write(user, "```")
text = ( text = (
@@ -53,7 +54,8 @@ def dump():
) )
printr(text) printr(text)
with pathlib.Path("export/posts-" + user + ".txt").open("w") as f: with pathlib.Path("export/posts-" + user + ".txt").open("w") as f:
f.write(user, "said:```") f.write(user)
f.write(" said ")
f.write(text) f.write(text)
f.write(user, "```") f.write(user, "```")
all_content += total_text all_content += total_text