Enhance dashboard statistics with TED notice tracking
continuous-integration/drone/push Build is passing

- Added a new field, ScrapedTEDNotices, to the StatisticsLifetimeTotals struct to track the total number of TED notices scraped.
- Updated the Statistics method in the statistics repository to include a background process for retrieving total scraped TED notices, improving the accuracy of dashboard statistics.
- Introduced new methods in the Counter to increment and retrieve daily counts for scraped TED notices, ensuring reliable metrics for reporting.
- Modified the TEDScraper to increment the TED notice scraped counter upon successful import, enhancing the tracking of scraping activity.

This update improves the dashboard's statistics by providing detailed insights into TED notice scraping activities, contributing to better data visibility and reporting.
This commit is contained in:
Mazyar
2026-06-30 23:28:12 +03:30
parent 50c018af62
commit 7a9de273bb
4 changed files with 84 additions and 50 deletions
+1
View File
@@ -105,4 +105,5 @@ type StatisticsDailySeries struct {
type StatisticsLifetimeTotals struct {
ScrapedDocuments int64 `json:"scraped_documents"`
TranslatedTenders int64 `json:"translated_tenders"`
ScrapedTEDNotices int64 `json:"scraped_ted_notices"`
}