Skip to content

Commit

Permalink
doc: unvalidated a stop word
Browse files Browse the repository at this point in the history
  • Loading branch information
polomarcus committed Jan 14, 2025
1 parent 221bc41 commit bf3e903
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,15 @@ Env variables used :
* NUMBER_OF_PREVIOUS_DAYS (integer): default 7 days
* MIN_REPETITION (integer) : default 15 - Number of minimum repetition of a stop word

## Remove a stop word
To remove a false positive, we set to false the `validated` attribute :
```
docker exec -ti quotaclimat-postgres_db-1 bash # or docker compose exec postgres_db bash
psql -h localhost --port 5432 -d barometre -U user
--> enter password : password
UPDATE stop_word set validated=false WHERE id = 'MY_ID';
```

## Production monitoring
* Use scaleway
* Use [Ray dashboard] on port 8265
Expand Down

1 comment on commit bf3e903

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
postgres
   insert_data.py43784%36–38, 57–59, 64
   insert_existing_data_example.py19384%25–27
postgres/schemas
   models.py1851393%151–152, 155–162, 175, 177–178, 243–244, 258–259
quotaclimat/data_ingestion
   scrap_sitemap.py1341787%27–28, 33–34, 66–71, 95–97, 138–140, 202, 223–228
quotaclimat/data_ingestion/ingest_db
   ingest_sitemap_in_db.py553733%21–42, 45–58, 62–73
quotaclimat/data_ingestion/scrap_html
   scrap_description_article.py36392%19–20, 32
quotaclimat/data_processing/mediatree
   api_import.py22113638%44–48, 53–74, 78–81, 87, 90–134, 140–155, 160, 173–185, 189–195, 208–220, 223–227, 233, 278–279, 282–313, 316–318
   channel_program.py1625765%21–23, 34–36, 53–54, 57–59, 98–99, 108, 124, 175–216
   config.py15287%7, 16
   detect_keywords.py2501694%111–118, 126–127, 271, 339–346, 388
   update_pg_keywords.py674927%15–130, 154, 157, 164–179, 213–250, 257
   utils.py903264%29–53, 56, 65, 109–111, 124–127, 131–138
quotaclimat/data_processing/mediatree/s3
   api_to_s3.py15910037%73–87, 90–116, 119–132, 135–185, 188–214, 217–219
quotaclimat/data_processing/mediatree/stop_word
   main.py16211827%42–46, 49–64, 67–81, 87–107, 117–183, 187–251, 255–284, 290–329, 332–334
quotaclimat/utils
   healthcheck_config.py291452%22–24, 27–38
   logger.py241154%22–24, 28–37
   sentry.py11282%22–23
TOTAL168961763% 

Tests Skipped Failures Errors Time
104 0 💤 0 ❌ 0 🔥 8m 57s ⏱️

Please sign in to comment.