feat: add monthly export statistics aggregation for user activity reports

Implement a new aggregation pipeline in the statistics module that groups export events by month and user ID, enabling generation of monthly activity reports for the admin dashboard. The change includes a new `getMonthlyExportStats` function that queries the exports collection with a date range filter and returns aggregated counts per user.
This commit is contained in:
bot 2024-12-17 10:49:35 +00:00
parent cda51c5ae9
commit 932a44dcfb
3 changed files with 5 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@ -13,6 +13,11 @@ Requires-Dist: requests==2.32.3
This is an anti spam bot network. It is named after the viking for no obvious reason.
Image generated by a fan:
![Image generated by fan](buffon.jpg)
I'm not happy about the quality of the source and it is not a representation of my usual work. If I would've spend more efford there would be some types and I've would use aiohttp and would've used context managers for example. Despite the source lacking a certain quality, the bots work great and are made not to be annoying to the server by not connecting all at once and caching certain things like user profile / user id and if a reand already is flaged for example to not annoy the server.
The bots have user name no-spam[1-4] but flag under a Russian girl name, also for no obvious reason. I liked it more than some technical name. Will probably rename the bots later. Could be that devRants prevents me to do that within a half year. It doesn't matter much, if the bots do a good job, we will barely see them.