Skip to content

Commit

Permalink
fix(setup.py + index.html): packages & url_for()
Browse files Browse the repository at this point in the history
Fixed error: package directory 'apps/alpr/ipban' does not
exist
by
removing said directory from packages in setup.py
Fixed
url_for() in
See all under Custom alerts in index.html
  • Loading branch information
mibs510 committed Jul 12, 2023
1 parent 0006f33 commit 2067c1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/templates/home/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ <h2 class="fs-5 fw-bold mb-1">Recent Custom Alerts</h2>
{% endfor %}
</div>
<div class="card-footer border-top bg-gray-50">
<a class="fw-bold d-flex align-items-center justify-content-center" href="{{ url_for('alerts.rekor') }}">
<a class="fw-bold d-flex align-items-center justify-content-center" href="{{ url_for('alerts.custom') }}">
<svg class="icon icon-xs me-2" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 12a2 2 0 100-4 2 2 0 000 4z"></path><path fill-rule="evenodd" d="M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10zM14 10a4 4 0 11-8 0 4 4 0 018 0z" clip-rule="evenodd"></path></svg>
See all
</a>
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
name='OpenALPR-Webhook',
version=__version__,
platforms='linux',
packages=['apps', 'apps/alpr', 'apps/alpr/ipban', 'apps/alpr/models', 'apps/alpr/routes', 'apps/alpr/routes/alert',
packages=['apps', 'apps/alpr', 'apps/alpr/models', 'apps/alpr/routes', 'apps/alpr/routes/alert',
'apps/alpr/routes/alerts', 'apps/alpr/routes/alerts/custom', 'apps/alpr/routes/alerts/rekor',
'apps/alpr/routes/capture', 'apps/alpr/routes/search', 'apps/alpr/routes/settings',
'apps/alpr/routes/settings/agents', 'apps/alpr/routes/settings/cameras',
Expand Down

0 comments on commit 2067c1c

Please sign in to comment.