Update logging
Some checks failed
dR export statistics / Compile (push) Failing after 4m36s

This commit is contained in:
retoor 2024-11-23 20:29:56 +01:00
parent 6dbcf94c7b
commit 94f5fe07e2
5 changed files with 21 additions and 12 deletions

View File

@ -3,9 +3,13 @@
## About ## About
Simple project to determine health of the devrant platform. Simple project to determine health of the devrant platform.
Also, it will generate a dataset to be used with machine learning. Also, it will generate a dataset to be used with machine learning.
Make Retoor9b great again! Make Retoor9b great again!
Generating these statistics takes quite some steps. Look at the build log under the `actions` tab.
## Credits ## Credits
Thanks to Rohan Burke (coolq). The creator of the dr api wrapper this project uses. Since it isn't made like a package, i had to copy his source files to my source folder. His library: https://github.com/coolq1000/devrant-python-api/ Thanks to Rohan Burke (coolq). The creator of the dr api wrapper this project uses. Since it isn't made like a package, i had to copy his source files to my source folder. His library: https://github.com/coolq1000/devrant-python-api/

View File

@ -1,9 +1,9 @@
[metadata] [metadata]
name = drstats name = drstats
version = 0.1.1 version = 1.3.37
description = Dr Stats description = dR stats
author = Retoor author = Retoor
author_email = retoor@retoor.io author_email = retoor@molodetz.nl
license = MIT license = MIT
long_description = file: README.md long_description = file: README.md
long_description_content_type = text/markdown long_description_content_type = text/markdown
@ -14,9 +14,10 @@ package_dir =
= src = src
python_requires = >=3.7 python_requires = >=3.7
install_requires = install_requires =
aiohttp>=3.10.10 aiohttp==3.10.10
dataset>=1.6.2 dataset==1.6.2
matplotlib>=3.9.2 matplotlib==3.9.2
requests==2.32.3
[options.packages.find] [options.packages.find]
where = src where = src

View File

@ -7,9 +7,10 @@ Author-email: retoor@retoor.io
License: MIT License: MIT
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: aiohttp==3.10.10
Requires-Dist: dataset>=1.6.2 Requires-Dist: dataset==1.6.2
Requires-Dist: matplotlib>=3.9.2 Requires-Dist: matplotlib==3.9.2
Requires-Dist: requests==2.32.3
# dRStats # dRStats

View File

@ -1,3 +1,4 @@
aiohttp>=3.10.10 aiohttp==3.10.10
dataset>=1.6.2 dataset==1.6.2
matplotlib>=3.9.2 matplotlib==3.9.2
requests==2.32.3

View File

@ -31,6 +31,7 @@ def dump():
f"All rants written by user(ranter) `{user}` on devRant(developer community)```.", f"All rants written by user(ranter) `{user}` on devRant(developer community)```.",
) )
print(text, "```") print(text, "```")
printr(text)
text = ( text = (
db.get_all_posts_of_user(user).replace("\n", " ").replace(" ", " ").strip() db.get_all_posts_of_user(user).replace("\n", " ").replace(" ", " ").strip()
) )
@ -41,6 +42,7 @@ def dump():
f"All posts written by user(ranter) `{user}` on devRant(developer community): ```.", f"All posts written by user(ranter) `{user}` on devRant(developer community): ```.",
) )
print(text, "```") print(text, "```")
printr(text)
all_content += total_text all_content += total_text
for user in db.get_users(): for user in db.get_users():