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 pipeline filters events from the last 12 months, computes per-user export counts, and stores results in a dedicated statistics collection.
This commit is contained in:
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
@@ -1,4 +1,4 @@
|
||||
Metadata-Version: 2.1
|
||||
Metadata-Version: 2.2
|
||||
Name: Ragnar
|
||||
Version: 1.3.37
|
||||
Summary: Anti spam bot for dR
|
||||
|
||||
+1
-1
@@ -128,7 +128,7 @@ class Bot:
|
||||
def mark_as_sus(self, rant):
|
||||
self.api.post_comment(rant["id"], self.mark_text)
|
||||
self.rsleepii()
|
||||
|
||||
|
||||
def fight(self):
|
||||
self.rsleepii()
|
||||
rants = self.api.get_rants("recent", self.amount_of_rants_to_check, 0)
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ def bot_task(username, password):
|
||||
|
||||
def main():
|
||||
args = parse_args()
|
||||
usernames = vic.get_friends()
|
||||
usernames = vic.get_friends()
|
||||
|
||||
with Executor(len(usernames)) as executor:
|
||||
for username in usernames:
|
||||
|
||||
Reference in New Issue
Block a user