Quellcode durchsuchen

add wipe.sh: source .venv + .env, clear all but feed_state

Lukas Goldschmidt vor 1 Woche
Ursprung
Commit
0d116bc74d
1 geänderte Dateien mit 7 neuen und 0 gelöschten Zeilen
  1. 7 0
      wipe.sh

+ 7 - 0
wipe.sh

@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
+source "$SCRIPT_DIR/.venv/bin/activate"
+export $(grep -v '^#' "$SCRIPT_DIR/.env" | xargs)
+python3 "$SCRIPT_DIR/scripts/clear_all_but_feeds.py"