[10:09:14] Z20181 failing tests “Perform test error: 'Z20254' isn't a known Object”. The object is listed in the function’s test cases but no longer exists. It was deleted in November and function tests appear to have passed “6 hours ago”. [21:43:58] I need help implementing this function [21:43:59] https://www.wikifunctions.org/view/en/Z24876 [21:45:56] I want to test it and then ensure that it works for all dates format and can be converted to the Dagbani format (re @Dnshitobu: I need help implementing this function [21:45:57] https://www.wikifunctions.org/view/en/Z24876) [21:58:20] I’ve connected the test but there’s an error. I’m leaving the implementation disconnected so you can fix it. (re @Dnshitobu: I want to test it and then ensure that it works for all dates format and can be converted to the Dagbani format) [21:58:30] You're not supposed to add an extra quote (re @Dnshitobu: I need help implementing this function [21:58:32] https://www.wikifunctions.org/view/en/Z24876) [21:58:38] Well I guess any at all [21:58:48] I've fixed it, test passes now [22:13:41] Thank you so much but I will love to get the results without the quotes [22:17:17] Regarding this, I think this code runs well on python but does not run on Wikifunctions [22:17:18] def Z12345(Z12345K1): [22:17:20] import re [22:17:21] from datetime import datetime [22:17:23] day_names = { [22:17:24] 1: 'dahinyini', 2: 'dabaayi', 3: 'dabaata', 4: 'dabaanahi', [22:17:26] 5: 'dabaanu', 6: 'dabaayɔbu', 7: 'dabaapɔin', 8: 'dabaanii', [22:17:27] 9: 'dabaawɔi', 10: 'biɛɣu pia', 11: 'biɛɣu piniyini', 12: 'biɛɣu pinaayi', [22:17:29] 13: 'biɛɣu pinaata', 14: 'biɛɣu pinaanahi', 15: 'biɛɣu pinaanu', [22:17:30] 16: 'biɛɣu pinaayobu', 17: 'biɛɣu pinaapɔin', 18: 'biɛɣu pishiayika', [22:17:32] 19: 'biɛɣu pisiyinika', 20: 'biɛɣu pishi', 21: 'biɛɣu pishi ni yini', [22:17:33] 22: 'biɛɣu pishi ni ayi', 23: 'biɛɣu pishi ni ata', 24: 'biɛɣu pishi ni anahi', [22:17:35] 25: 'biɛɣu pishi ni anu', 26: 'biɛɣu pishi ni ayobu', 27: 'biɛɣu pishi ni apɔin', [22:17:36] 28: 'biɛɣu pihita ayika', 29: 'biɛɣu pihitayinika', 30: 'biɛɣu pihita', [22:17:38] 31: 'biɛɣu pihita ni yini' [22:17:39] } [22:17:41] months = { [22:17:42] 1: 'January', 2: 'February', 3: 'March', 4: 'April', [22:17:44] 5: 'May', 6: 'June', 7: 'July', 8: 'August', [22:17:45] 9: 'September', 10: 'October', 11: 'November', 12: 'December' [22:17:47] } [22:17:48] date_formats = [ [22:17:50] "%d/%m/%Y", "%Y-%m-%d", "%d-%m-%Y", "%B %d, %Y", "%d %B %Y", "%d %b %Y" [22:17:51] ] [22:17:53] for fmt in date_formats: [22:17:54] try: [22:17:56] parsed_date = datetime.strptime(Z12345K1.strip(), fmt) [22:17:58] day = parsed_date.day [22:18:00] month = parsed_date.month [22:18:02] year = parsed_date.year [22:18:04] dagbani_day = day_names.get(day, f'day-{day}') [22:22:07] These don't look like the right keys for your function. (re @wikilinksbot: Z12345 – Breton conjugation future 2nd person singular [22:22:08] Z12345K1 – Breton conjugation future 2nd person singular) [22:23:57] Z24876 (re @u99of9: These don't look like the right keys for your function.) [22:24:44] I have just tested it on this article and it works fine [22:24:45] https://dag.wikipedia.org/wiki/Lydia_Forson [22:24:57] 🥰