VyLala commited on
Commit
172369b
·
verified ·
1 Parent(s): 33bbc3d

Update mtdna_backend.py

Browse files
Files changed (1) hide show
  1. mtdna_backend.py +2 -4
mtdna_backend.py CHANGED
@@ -17,10 +17,6 @@ from oauth2client.service_account import ServiceAccountCredentials
17
  from io import StringIO
18
  import hashlib
19
  import threading
20
- # At top of mtdna_backend.py
21
-
22
- save_df, save_headers, SHEET_OBJ = load_sheet_once()
23
- print("🔒 Google Sheet cache loaded and ready.")
24
 
25
  # @lru_cache(maxsize=3600)
26
  # def classify_sample_location_cached(accession):
@@ -199,6 +195,8 @@ def load_sheet_once():
199
  # Always return copies so we don't mutate cache accidentally
200
  return SHEET_CACHE.copy(), list(SHEET_HEADERS), SHEET_OBJ
201
 
 
 
202
 
203
  async def summarize_results(accession, stop_flag=None, niche_cases=None):
204
  # Early bail
 
17
  from io import StringIO
18
  import hashlib
19
  import threading
 
 
 
 
20
 
21
  # @lru_cache(maxsize=3600)
22
  # def classify_sample_location_cached(accession):
 
195
  # Always return copies so we don't mutate cache accidentally
196
  return SHEET_CACHE.copy(), list(SHEET_HEADERS), SHEET_OBJ
197
 
198
+ save_df, save_headers, SHEET_OBJ = load_sheet_once()
199
+ print("🔒 Google Sheet cache loaded and ready.")
200
 
201
  async def summarize_results(accession, stop_flag=None, niche_cases=None):
202
  # Early bail