Commit 50ddc23
fix: auditoria completa — 15 correções API ISAPI + 3 crashes + threading + otimização
API ISAPI (isapi_client.py):
- faceLibType: blackFD→staticFD em TODOS os endpoints (era blocklist!)
- FDSearch: FaceLibType→faceLibType (casing), startNumber (era searchResultPosition)
- get_face: busca por faceCustomCondition/byEmployeeNo conforme spec
- delete_faces batch: POST→PUT + body FDSearchCond conforme spec
- delete_all_users inner: POST→PUT + body FDSearchCond
- modify_user: /Modify→/SetUp (endpoint correto)
- modify_card: /Modify→/SetUp (endpoint correto)
- add_face: campos multipart faceURL+img conforme doc API
- Download de fotos: cooldown adaptativo (0.3s-3s), fallback FDSearch multipart
Backup (backup.py):
- restore_backup: checa device_info.get("ok") corretamente
- list_backups: busca serial completo E truncado
App crashes (app.py):
- NameError src_label/dst_label no clone facial — agora derivados de src_td/dst_td
- ScreenCadastros: adicionado log_text via create_log_area
- ScreenCadastros: _get_selected_terminal→find_terminal_by_display
- log_activity/set_status: thread-safe via self.after(0, ...)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 9521d76 commit 50ddc23
5 files changed
Lines changed: 117 additions & 134 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | | - | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
569 | 571 | | |
570 | 572 | | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
586 | 592 | | |
587 | 593 | | |
588 | 594 | | |
| |||
3734 | 3740 | | |
3735 | 3741 | | |
3736 | 3742 | | |
| 3743 | + | |
| 3744 | + | |
| 3745 | + | |
3737 | 3746 | | |
3738 | 3747 | | |
3739 | 3748 | | |
| |||
5466 | 5475 | | |
5467 | 5476 | | |
5468 | 5477 | | |
| 5478 | + | |
| 5479 | + | |
5469 | 5480 | | |
5470 | 5481 | | |
5471 | 5482 | | |
| |||
6213 | 6224 | | |
6214 | 6225 | | |
6215 | 6226 | | |
6216 | | - | |
| 6227 | + | |
6217 | 6228 | | |
| 6229 | + | |
6218 | 6230 | | |
6219 | 6231 | | |
6220 | 6232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
381 | | - | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
382 | 383 | | |
383 | 384 | | |
384 | 385 | | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
| 386 | + | |
392 | 387 | | |
393 | 388 | | |
394 | 389 | | |
| |||
506 | 501 | | |
507 | 502 | | |
508 | 503 | | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
513 | 510 | | |
514 | 511 | | |
515 | 512 | | |
| |||
0 commit comments