Explorar el Código

chore: cleanup scratch scripts from tracking

unknown hace 2 días
padre
commit
516499601d
Se han modificado 2 ficheros con 0 adiciones y 17 borrados
  1. 0 7
      scratch/check_redis.py
  2. 0 10
      scratch/find_orders_line.py

+ 0 - 7
scratch/check_redis.py

@@ -1,7 +0,0 @@
-import redis
-try:
-    r = redis.Redis(host='localhost', port=6379, db=0, socket_timeout=5)
-    print(f"PING: {r.ping()}")
-    print("Redis is ALIVE")
-except Exception as e:
-    print(f"Redis ERROR: {e}")

+ 0 - 10
scratch/find_orders_line.py

@@ -1,10 +0,0 @@
-import json
-
-with open('src/locales/translations.user.json', 'r', encoding='utf-8') as f:
-    for i, line in enumerate(f, 1):
-        if '"home": {' in line:
-            print(f"FOUND home at line {i}: {line.strip()}")
-        if '"index": {' in line:
-            print(f"FOUND index at line {i}: {line.strip()}")
-        if '"hero": {' in line:
-            print(f"FOUND hero at line {i}: {line.strip()}")