Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -223,7 +223,7 @@ if show_exact_matches:
|
|
223 |
countries = metadata.get('countries', "[]")
|
224 |
client_name = metadata.get('client', 'Unknown Client')
|
225 |
start_year = metadata.get('start_year', None)
|
226 |
-
|
227 |
|
228 |
try:
|
229 |
c_list = json.loads(countries.replace("'", '"'))
|
@@ -245,7 +245,7 @@ if show_exact_matches:
|
|
245 |
|
246 |
# Format the year range
|
247 |
start_year_str = f"{int(round(float(start_year)))}" if start_year else "Unknown"
|
248 |
-
end_year_str = f"{int(round(float(
|
249 |
|
250 |
# Build the final string
|
251 |
if matched_countries:
|
@@ -315,7 +315,7 @@ else:
|
|
315 |
|
316 |
# Format the year range
|
317 |
start_year_str = f"{int(round(float(start_year)))}" if start_year else "Unknown"
|
318 |
-
end_year_str = f"{int(round(float(
|
319 |
|
320 |
# Build the final string
|
321 |
if matched_countries:
|
|
|
223 |
countries = metadata.get('countries', "[]")
|
224 |
client_name = metadata.get('client', 'Unknown Client')
|
225 |
start_year = metadata.get('start_year', None)
|
226 |
+
end_year = metadata.get('end_year', None)
|
227 |
|
228 |
try:
|
229 |
c_list = json.loads(countries.replace("'", '"'))
|
|
|
245 |
|
246 |
# Format the year range
|
247 |
start_year_str = f"{int(round(float(start_year)))}" if start_year else "Unknown"
|
248 |
+
end_year_str = f"{int(round(float(end_year)))}" if end_year else "Unknown"
|
249 |
|
250 |
# Build the final string
|
251 |
if matched_countries:
|
|
|
315 |
|
316 |
# Format the year range
|
317 |
start_year_str = f"{int(round(float(start_year)))}" if start_year else "Unknown"
|
318 |
+
end_year_str = f"{int(round(float(end_year)))}" if end_year else "Unknown"
|
319 |
|
320 |
# Build the final string
|
321 |
if matched_countries:
|