Quivara commited on
Commit
0e68f10
·
verified ·
1 Parent(s): 52b750b

Update alisto_project/backend/ingest_reddit.py

Browse files
alisto_project/backend/ingest_reddit.py CHANGED
@@ -388,6 +388,14 @@ async def scrape_reddit():
388
  print("❌ Error: Client ID or Secret missing in .env")
389
  return
390
 
 
 
 
 
 
 
 
 
391
  # initializes PRAW using the secure Client Credentials Flow (read-only)
392
  reddit = asyncpraw.Reddit(
393
  client_id=client_id,
 
388
  print("❌ Error: Client ID or Secret missing in .env")
389
  return
390
 
391
+ # DEBUG BLOCK
392
+ u = os.getenv("REDDIT_USERNAME")
393
+ p = os.getenv("REDDIT_PASSWORD")
394
+ print(f"DEBUG: Username found? {u is not None}")
395
+ if u: print(f"DEBUG: Username length: {len(u)}")
396
+ print(f"DEBUG: Password found? {p is not None}")
397
+ # END DEBUG BLOCK
398
+
399
  # initializes PRAW using the secure Client Credentials Flow (read-only)
400
  reddit = asyncpraw.Reddit(
401
  client_id=client_id,