cdleong commited on
Commit
10bed1d
1 Parent(s): 25a3c87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -87,16 +87,18 @@ if lang is not None:
87
  st.write(f"If it exists, the ISO 639 Code Tables entry for the T variant would be at https://iso639-3.sil.org/code/{t_variant}")
88
  st.write(f"If it exists, the ISO 639 Code Tables entry for the B variant would be at https://iso639-3.sil.org/code/{b_variant}")
89
  obsolete_codes = pull_obsolete_codes(t_variant)
 
 
90
  if obsolete_codes:
91
  st.write(f"Obsolete codes from previous ISO-639 iterations, pulled from https://iso639-3.sil.org/code/{t_variant}:")
 
92
  else:
93
- obsolete_codes = pull_obsolete_codes(b_variant)
94
-
95
- if obsolete_codes:
96
- st.write(f"Obsolete codes from previous ISO-639 iterations, pulled from https://iso639-3.sil.org/code/{b_variant}:")
97
 
98
- st.write(obsolete_codes)
99
-
100
 
101
 
102
 
87
  st.write(f"If it exists, the ISO 639 Code Tables entry for the T variant would be at https://iso639-3.sil.org/code/{t_variant}")
88
  st.write(f"If it exists, the ISO 639 Code Tables entry for the B variant would be at https://iso639-3.sil.org/code/{b_variant}")
89
  obsolete_codes = pull_obsolete_codes(t_variant)
90
+
91
+ #TODO: Cleanup this bit
92
  if obsolete_codes:
93
  st.write(f"Obsolete codes from previous ISO-639 iterations, pulled from https://iso639-3.sil.org/code/{t_variant}:")
94
+ st.write(obsolete_codes)
95
  else:
96
+ obsolete_codes = pull_obsolete_codes(b_variant)
97
+ if obsolete_codes:
98
+ st.write(f"Obsolete codes from previous ISO-639 iterations, pulled from https://iso639-3.sil.org/code/{b_variant}:")
 
99
 
100
+ st.write(obsolete_codes)
101
+
102
 
103
 
104