Commit 0a4bc2d
fix: address additional code review issues
1. Add safe float conversion for change_pct to prevent TypeError
- Handles string values from data providers
- Converts to float with fallback to None
2. Update CHANGELOG.md with PR changes
- Add financial data and dividend metrics to email reports
- Add sector/board information with change percentage
- Support HK and US market sector data
- Fix board lookup when ranking API transiently fails
- Remove incorrect dividend ratio field mapping
- Fix Chinese character garble in logs
- Archive completed OpenSpec changes
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 9f6f74e commit 0a4bc2d
2 files changed
Lines changed: 23 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
14 | 21 | | |
15 | 22 | | |
16 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1061 | 1061 | | |
1062 | 1062 | | |
1063 | 1063 | | |
1064 | | - | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
1065 | 1070 | | |
1066 | 1071 | | |
1067 | 1072 | | |
| |||
1431 | 1436 | | |
1432 | 1437 | | |
1433 | 1438 | | |
1434 | | - | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
1435 | 1444 | | |
1436 | 1445 | | |
1437 | 1446 | | |
| |||
1726 | 1735 | | |
1727 | 1736 | | |
1728 | 1737 | | |
1729 | | - | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
1730 | 1743 | | |
1731 | 1744 | | |
1732 | 1745 | | |
| |||
0 commit comments