fix: update scraper settings and modify scrape form to use POST method
Some checks failed
CI/CD Pipeline / test (push) Successful in 1m32s
CI/CD Pipeline / build-image (push) Failing after 1m41s

This commit is contained in:
2026-01-07 16:25:35 +01:00
parent f8a5b1b5ef
commit 54ed111078
5 changed files with 60 additions and 25 deletions

View File

@@ -35,7 +35,7 @@
<button type="button" id="reset-filters">Reset</button>
</form>
{% if session.get('username') %}
<form id="scrape-form" method="GET" action="/scrape">
<form id="scrape-form" method="POST" action="{{ url_for('scrape') }}">
<button type="submit">Scrape Jobs</button>
<span id="scrape-info"></span>
</form>
@@ -44,11 +44,13 @@
<div id="jobs">
{% for job in jobs %}
<div class="job">
<!--<h3><a href="{{ job['url'] }}" target="_blank">{{ job['title'] }}</a></h3>-->
<h3><a href="{{ url_for('job_by_id', job_id=job['id']) }}" target="_blank">{{ job['title'] }}</a></h3>
<p class="job-posted-time">{{ job['posted_time'] }}</p>
<span class="job-region region-{{ job['region'] }}">{{ job['region'] }}</span>
<span class="job-keyword keyword-{{ job['keyword']|replace(' ', '')|lower }}">{{ job['keyword'] }}</span>
<button class="favorite-button" data-job-id="{{ job['id'] }}" data-username="{{ session.get('username', '') }}">
{% if job['is_favorite'] %}★{% else %}☆{% endif %}
</button>
</div>
{% endfor %}
</div>