fix: sort import jobs by newest first and fix language parameter

Sorting:
- Add id DESC as tiebreaker when created_at timestamps are equal
- Ensures consistent newest-first ordering on imports and marketplace pages

Language bug fix:
- Add language field to startImport() payload in marketplace.js
- Add language column to MarketplaceImportJob database model
- Store and return language in API responses
- Add cache-busting version parameter to script tag

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-13 14:45:18 +01:00
parent 8e5da6fec3
commit 193712aad7
2 changed files with 9 additions and 3 deletions

View File

@@ -347,5 +347,5 @@
{% endblock %}
{% block extra_scripts %}
<script src="{{ url_for('static', path='admin/js/marketplace.js') }}"></script>
<script src="{{ url_for('static', path='admin/js/marketplace.js') }}?v=2"></script>
{% endblock %}