fix: Increase rate limit and add missing fields to KRS audit API
- Increase rate limit from 20/hour to 200/hour for batch operations - Add nip, regon, liczba_udzialow, prokurenci_count to API response Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
b26dafa0f1
commit
bd23238c1a
6
app.py
6
app.py
@ -8680,7 +8680,7 @@ def admin_krs_audit():
|
||||
|
||||
@app.route('/api/krs/audit', methods=['POST'])
|
||||
@login_required
|
||||
@limiter.limit("20 per hour")
|
||||
@limiter.limit("200 per hour")
|
||||
def api_krs_audit_trigger():
|
||||
"""
|
||||
API: Trigger KRS audit for a company (admin-only).
|
||||
@ -8885,9 +8885,13 @@ def api_krs_audit_trigger():
|
||||
'data': {
|
||||
'krs': parsed_data.get('krs'),
|
||||
'nazwa': parsed_data.get('nazwa'),
|
||||
'nip': parsed_data.get('nip'),
|
||||
'regon': parsed_data.get('regon'),
|
||||
'kapital': float(parsed_data.get('kapital_zakladowy', 0) or 0),
|
||||
'liczba_udzialow': parsed_data.get('liczba_udzialow'),
|
||||
'zarzad_count': len(parsed_data.get('zarzad', [])),
|
||||
'wspolnicy_count': len(parsed_data.get('wspolnicy', [])),
|
||||
'prokurenci_count': len(parsed_data.get('prokurenci', [])),
|
||||
'pkd_count': audit.pkd_count
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user