Michal Tuszowski fd6427a282 librarian: mount + seed runtime JSON state under /lib_temp_files
(Re-applied cleanly on top of main: PR #18 was rebase-merged, so the branch
that became #19 conflicted on the already-landed commits. This carries ONLY
the librarian state fix - the sole content difference between that branch
and main - so nothing else is touched or lost.)

The worker threads open cr_results/rr_results/not_in_db/s_results.json in
place ('r+'), crashing with FileNotFoundError in a fresh container. New
conjurer_librarian/lib_paths.py resolves all four under a persistent dir
(CONJURER_LIBRARIAN_STATE_DIR, default /lib_temp_files) and seeds missing
ones with '{}' on import; shared by conjurer_librarian.py and scrape_bot.py
(no circular import). ndb_database/database initialised to {} before load so
a corrupt persisted file degrades to empty instead of NameError. search_bot
/search_bot2 open the DOI DB 'r' not 'r+' so /doi can stay read-only. Docker:
STATE_DIR env + VOLUME, compose mounts /srv/librarian/state:/lib_temp_files.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-09 13:40:13 +02:00
2026-06-29 12:27:32 +02:00
2024-06-19 17:46:38 +02:00
2024-04-10 14:22:00 +02:00
2025-08-20 21:21:15 +02:00
2025-04-09 18:21:37 +01:00
2024-04-28 12:27:29 +02:00
2025-01-05 22:09:43 +01:00
2024-11-14 00:14:49 +01:00
2023-06-05 21:31:57 +02:00
2025-04-19 17:15:11 +02:00
2024-11-11 15:38:32 +01:00
2025-04-19 17:15:11 +02:00
2024-06-19 16:26:48 +01:00
2024-11-10 23:01:00 +00:00
2024-11-11 20:12:47 +00:00
2024-11-14 00:14:49 +01:00
2024-11-14 00:14:49 +01:00

conjurer

Discord.py bot for fun, sex and BDSM

S
Description
No description provided
Readme Unlicense 12 MiB
Languages
Python 99.7%
Shell 0.3%