Spaces:
Sleeping
Sleeping
Update appStore/prep_data.py
Browse files- appStore/prep_data.py +6 -0
appStore/prep_data.py
CHANGED
@@ -108,6 +108,12 @@ def remove_duplicates(results_list):
|
|
108 |
|
109 |
return unique_results
|
110 |
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
|
112 |
def get_max_end_year(_client, collection_name):
|
113 |
"""
|
|
|
108 |
|
109 |
return unique_results
|
110 |
|
111 |
+
def extract_year(date_str):
|
112 |
+
try:
|
113 |
+
return str(datetime.strptime(date_str, "%Y-%m-%d").year)
|
114 |
+
except Exception:
|
115 |
+
return "Unknown"
|
116 |
+
|
117 |
|
118 |
def get_max_end_year(_client, collection_name):
|
119 |
"""
|