DmitrMakeev commited on
Commit
029afae
·
verified ·
1 Parent(s): 9154d57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1827,7 +1827,9 @@ current_curator_index = 0
1827
  def add_user_cur(curator_name):
1828
  global current_curator_index
1829
 
1830
- if curator_name not in curators:
 
 
1831
  logging.error(f"Curator {curator_name} not found in the list of curators")
1832
  return False
1833
 
@@ -1856,7 +1858,6 @@ def add_user_cur_route():
1856
 
1857
 
1858
 
1859
-
1860
  initialize_requests()
1861
 
1862
 
 
1827
  def add_user_cur(curator_name):
1828
  global current_curator_index
1829
 
1830
+ if curator_name is None:
1831
+ curator_name = curators[current_curator_index]
1832
+ elif curator_name not in curators:
1833
  logging.error(f"Curator {curator_name} not found in the list of curators")
1834
  return False
1835
 
 
1858
 
1859
 
1860
 
 
1861
  initialize_requests()
1862
 
1863