Skip to content

Commit 351ae96

Browse files
committed
add changelog, update readme
1 parent 6a3afe0 commit 351ae96

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## [1.1.0] - 2021-02-11
8+
### Added
9+
- Three new config variables (`MONGO_OUTSIDE_PORT`, `MAX_WORKERS`, `KEEP_DAYS`). See [readme](README.md) for details.
10+
- Network name for this project (`network name`)
11+
- Changelog file
12+
### Changed
13+
- Config variables are now uppercase
14+
- Readme
15+
16+
## [1.0.0] - 2021-02-07
17+
### Added
18+
- Initial project release

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Environment variables in `.env`:
2222
| MONGO_PASSWORD | MongoDB password |
2323
| MONGO_DB_NAME | MongoDB database name |
2424
| MONGO_CREATE_TEXT_INDEX | `true` or `1` to let MongoDB create a text index (helpful for [text search](https://docs.mongodb.com/manual/text-search/)) |
25-
| MONGO_OUTSIDE_PORT | Exposed MongoDB port on your host machine. |
25+
| MONGO_OUTSIDE_PORT | Exposed MongoDB port, accessible on your host machine. |
2626
| MAX_WORKERS | Number of worker threads for the crawler. Remove for auto assignment. |
2727
| KEEP_DAYS | Discard articles older than **n** days. Default is "2". |
2828

crawler/app/crawler/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
def init():
2626
ts = time()
2727
logger.info('Downloading new articles')
28+
logger.info(f'Ignoring articles older than {config.KEEP_DAYS} days')
2829

2930
if config.MAX_WORKERS:
3031
logger.info(f'Maximum crawler workers: {config.MAX_WORKERS}')

0 commit comments

Comments
 (0)