(results)
| 795 | |
| 796 | # Obtain most recent KB from a dictionary of results |
| 797 | def get_most_recent_kb(results): |
| 798 | dates = [int(r['DatePosted']) for r in results if r['DatePosted']] |
| 799 | if dates: |
| 800 | date = str(max(dates)) |
| 801 | return list(filter(lambda kb: kb['DatePosted'] == date, results))[0] |
| 802 | else: |
| 803 | return None |
| 804 | |
| 805 | |
| 806 | # Output results of wes.py to screen |
no outgoing calls
no test coverage detected