-- PostgreSQL database dump
--
-\restrict JPaknCY0oEioIF0KZXsQxd9k8J4KAoFZnnVs2RpIewZuAAWn2sRSbNubLxxk2P2
+\restrict 3D6w6Ba6aGIuuPKNG7TDbNdKg6QKBWtkvOqI9CgPZ9Rmbc8lGYUpRjUvPeflzFA
-- Dumped from database version 17.7 (Debian 17.7-0+deb13u1)
-- Dumped by pg_dump version 17.7 (Debian 17.7-0+deb13u1)
updated_at timestamp with time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
description text,
total_domains integer DEFAULT 0 NOT NULL,
- pending_reports integer DEFAULT 0 NOT NULL,
priority integer DEFAULT 0 NOT NULL,
subsumed_domains integer DEFAULT 0 NOT NULL,
optimized_at timestamp with time zone DEFAULT CURRENT_TIMESTAMP NOT NULL
-- PostgreSQL database dump complete
--
-\unrestrict JPaknCY0oEioIF0KZXsQxd9k8J4KAoFZnnVs2RpIewZuAAWn2sRSbNubLxxk2P2
+\unrestrict 3D6w6Ba6aGIuuPKNG7TDbNdKg6QKBWtkvOqI9CgPZ9Rmbc8lGYUpRjUvPeflzFA
"""
return await self.backend.reports.create(list=self, **kwargs)
- # Pending Reports
-
- pending_reports : int = 0
-
# Recently Reported?
async def recently_reported(self, name, reported_by, block=None):
comment=comment, reporter=report.reported_by, notify=False,
)
- # Increment the counter of the list
- report.list.pending_reports += 1
-
# Send a notification to the reporter
await report._send_opening_notification()
# Has this report been accepted?
self.accepted = accept
- # Decrement the counter for pending reports
- self.list.pending_reports -= 1
-
# Send a message to the reporter?
await self._send_closing_notification()