eternaut commited on
Commit
1185ec6
·
verified ·
1 Parent(s): 49dd5e8

Upload 01_TagesMuetter_RobertaBovoEdition.py

Browse files
src/01_TagesMuetter_RobertaBovoEdition.py CHANGED
@@ -78,7 +78,7 @@ st.markdown("""
78
  """, unsafe_allow_html=True)
79
 
80
  # Display the animated title
81
- st.markdown('<h2 class="animated-title">Roberta Bovo Special Edition 🤗 (ver. 4.2.3)</h2>', unsafe_allow_html=True)
82
  # --- End of Animated Title ---
83
 
84
  # Add vertical spacing to create better separation from file uploader
@@ -749,6 +749,11 @@ class trovaErrori:
749
  )
750
  return
751
 
 
 
 
 
 
752
  # Convert
753
  self.df[dob_col] = pd.to_datetime(self.df[dob_col], errors="coerce")
754
  self.df[end_col] = pd.to_datetime(self.df[end_col], errors="coerce")
 
78
  """, unsafe_allow_html=True)
79
 
80
  # Display the animated title
81
+ st.markdown('<h2 class="animated-title">Roberta Bovo Special Edition 🤗 (ver. 4.2.4)</h2>', unsafe_allow_html=True)
82
  # --- End of Animated Title ---
83
 
84
  # Add vertical spacing to create better separation from file uploader
 
749
  )
750
  return
751
 
752
+ # Kindergarten check applies only to 2024 (04.09) and 2025 (08.09).
753
+ # 2023 is skipped; 2026+ to be defined.
754
+ if self.ANNO_RIFERIMENTO not in ("2024", "2025"):
755
+ return
756
+
757
  # Convert
758
  self.df[dob_col] = pd.to_datetime(self.df[dob_col], errors="coerce")
759
  self.df[end_col] = pd.to_datetime(self.df[end_col], errors="coerce")