Skip to content

Commit 113c7d2

Browse files
committed
fix(docs): update README and command output to clarify date handling for empty databases
1 parent 5904a6e commit 113c7d2

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

discord_activity_tracker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Orchestrates exporter fetch → DB upsert + raw JSON → Markdown export to `DIS
4141
| `--skip-markdown-export` | Skip writing Markdown from the DB to `DISCORD_CONTEXT_REPO_PATH`. |
4242
| `--skip-remote-push` | Skip git commit/push after Markdown export (when auto-commit is enabled). |
4343
| `--skip-pinecone` / `--ignore-pinecone` | Skip Pinecone upsert for Discord messages (`--ignore-pinecone` is a deprecated alias). |
44-
| `--since`, `--from-date`, `--start-time` | Exporter lower bound (`--after`): `YYYY-MM-DD` or ISO-8601 UTC. If omitted, resumes from latest DB message for the guild (or full history if empty). |
44+
| `--since`, `--from-date`, `--start-time` | Exporter lower bound (`--after`): `YYYY-MM-DD` or ISO-8601 UTC. If omitted, resumes from latest DB message for the guild (or today UTC only if empty). |
4545
| `--until`, `--to-date`, `--end-time` | Exporter upper bound (`--before`); same formats. Omitted = through present. |
4646
| `--channels` | Comma-separated channel IDs (overrides `DISCORD_CHANNEL_IDS`). |
4747
| `--task` | **Deprecated.** `sync` \| `export` \| `all` — prefer `--skip-*` flags. |

discord_activity_tracker/management/commands/run_discord_activity_tracker.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def _resolve_exporter_date_bounds(
151151
)
152152
else:
153153
logger.debug(
154-
"exporter lower bound: none (--since omitted, empty DB for guild scope)",
154+
"exporter lower bound: today UTC only (--since omitted, empty DB for guild scope)",
155155
)
156156

157157
if until is not None:
@@ -527,7 +527,7 @@ def add_arguments(self, parser):
527527
dest="since",
528528
help="Exporter lower bound (--after): YYYY-MM-DD or ISO-8601 (UTC). "
529529
"If omitted, uses the latest message time already in the DB for this guild "
530-
"(and channel allowlist), or full history when the DB has no rows.",
530+
"(and channel allowlist), or today (UTC) only when the DB has no rows.",
531531
)
532532
parser.add_argument(
533533
"--until",
@@ -655,7 +655,7 @@ def _handle_core(
655655
)
656656
else:
657657
collector.stdout.write(
658-
" Lower bound (--after): none (full history; empty DB or no since)"
658+
" Lower bound (--after): today (UTC) only (empty DB, no --since)"
659659
)
660660
if before_date:
661661
collector.stdout.write(

discord_activity_tracker/tests/test_run_command_coverage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def test_handle_core_dry_run_skip_sync_only(monkeypatch, settings):
102102
):
103103
collector.cmd._handle_core(collector.options, collector)
104104
out = collector.stdout.getvalue()
105-
assert "full history" in out or "none" in out.lower()
105+
assert "today" in out.lower()
106106

107107

108108
@pytest.mark.django_db

0 commit comments

Comments
 (0)