Centralize token.txt to project root

- Updated 35 scripts to read token.txt from project root
  using Path(__file__).resolve().parent.parent / "token.txt"
- Removed 6 duplicate token.txt files from subdirectories
- Single token.txt in project root serves all scripts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-10 18:27:38 +01:00
parent 5992a01cdd
commit d783882cf6
42 changed files with 37 additions and 48 deletions

View File

@@ -8,10 +8,11 @@ Reads Bearer token from token.txt (single line, token only).
import requests
import pandas as pd
import time
from pathlib import Path
from typing import List, Dict, Any
# CONFIG ---------------------------------------------------------------------
TOKEN_FILE = "token.txt" # file with token (no "Bearer " prefix)
TOKEN_FILE = str(Path(__file__).resolve().parent.parent / "token.txt") # centralized token
GRAPHQL_URL = "https://app.medevio.cz/graphql"
CLINIC_SLUG = "mudr-buzalkova" # adjust if needed
LOCALE = "cs"