Commit 461632c
fvetter
🔧 Fix all timestamp conversion bugs in database methods
🐛 Multiple Critical Bugs Fixed:
- get_daily_buy_count() - daily transaction counting
- get_quick_stats() - stats logging
- All methods using timestamp conversion
🔧 Technical Problem:
- Multiple methods calculated date ranges in seconds (Python)
- Binance transact_time stored in milliseconds
- x1000 conversion factor missing across multiple functions
📊 Impact:
- Daily buy counting: 0 instead of 4
- Quick stats logging: 0 instead of 4
- All timestamp-based filtering broken
✅ Solution:
- Convert all date range calculations to milliseconds (*1000)
- Consistent timestamp handling across all database methods
- Added debug logging for verification
🎯 All timestamp-based database queries now work correctly1 parent 308f5ab commit 461632c
1 file changed
+9
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
255 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
256 | 258 | | |
257 | 259 | | |
258 | | - | |
| 260 | + | |
259 | 261 | | |
260 | 262 | | |
261 | 263 | | |
| |||
272 | 274 | | |
273 | 275 | | |
274 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
275 | 280 | | |
276 | 281 | | |
277 | 282 | | |
| |||
0 commit comments