shaileshjadhavSS commited on
Commit
a709932
·
1 Parent(s): c3f968a

Added WIP note for techs that don't have questionnaire

Browse files
Files changed (2) hide show
  1. app.py +5 -0
  2. core/questions_loader_local.py +2 -1
app.py CHANGED
@@ -17,6 +17,11 @@ def call():
17
  os.path.join(BASE_DIR, "questions", st.session_state['technology'].lower(), "questions.csv"),
18
  NUMBER_OF_TECHNICAL_QUESTIONS
19
  ).fetch_questions()
 
 
 
 
 
20
  common_questions = QuestionLoaderLocal(
21
  os.path.join(BASE_DIR, "questions", "common", "questions.csv"),
22
  NUMBER_OF_COMMON_QUESTIONS
 
17
  os.path.join(BASE_DIR, "questions", st.session_state['technology'].lower(), "questions.csv"),
18
  NUMBER_OF_TECHNICAL_QUESTIONS
19
  ).fetch_questions()
20
+
21
+ if not questions:
22
+ st.markdown("Work in progress!!")
23
+ return
24
+
25
  common_questions = QuestionLoaderLocal(
26
  os.path.join(BASE_DIR, "questions", "common", "questions.csv"),
27
  NUMBER_OF_COMMON_QUESTIONS
core/questions_loader_local.py CHANGED
@@ -23,7 +23,8 @@ class QuestionLoaderLocal:
23
  """
24
  # file_path = os.path.join(BASE_DIR, "questions", technology, "questions.csv")
25
  if not os.path.exists(self.file_path):
26
- raise FileNotFoundError(f"No questions found for technology")
 
27
 
28
  try:
29
  questions = []
 
23
  """
24
  # file_path = os.path.join(BASE_DIR, "questions", technology, "questions.csv")
25
  if not os.path.exists(self.file_path):
26
+ return []
27
+ # raise FileNotFoundError(f"No questions found for technology")
28
 
29
  try:
30
  questions = []