Skip to content

Commit d0480ec

Browse files
authored
Merge pull request #188 from djdembeck/develop
chore(release): 1.2.1
2 parents 4780acf + c6edf79 commit d0480ec

File tree

6 files changed

+24
-10
lines changed

6 files changed

+24
-10
lines changed

.github/workflows/docker-publish.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,28 @@ jobs:
2121
uses: actions/checkout@v3
2222

2323
- name: Log in to Docker Hub
24-
uses: docker/login-action@40891eba8c2bcd1309b07ba8b11232f313e86779
24+
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc
2525
with:
2626
username: ${{ secrets.DOCKER_USERNAME }}
2727
password: ${{ secrets.DOCKER_PASSWORD }}
2828

2929
- name: Log in to the Container registry
30-
uses: docker/login-action@40891eba8c2bcd1309b07ba8b11232f313e86779
30+
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc
3131
with:
3232
registry: ghcr.io
3333
username: ${{ github.actor }}
3434
password: ${{ secrets.GITHUB_TOKEN }}
3535

3636
- name: Extract metadata (tags, labels) for Docker
3737
id: meta
38-
uses: docker/metadata-action@c4ee3adeed93b1fa6a762f209fb01608c1a22f1e
38+
uses: docker/metadata-action@dbbf01822bb698575d92e1ee5b9229d58745b0c6
3939
with:
4040
images: |
4141
djdembeck/bragibooks
4242
ghcr.io/${{ github.repository }}
4343
4444
- name: Build and push Docker images
45-
uses: docker/build-push-action@eafaea8d0f5853934deece2ffa67af59d936562b
45+
uses: docker/build-push-action@44ea916f6c540f9302d50c2b1e5a8dc071f15cdf
4646
with:
4747
file: docker/Dockerfile
4848
context: .

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [1.2.1](https://github.com/djdembeck/bragibooks/compare/v1.2.0...v1.2.1) (2023-06-09)
6+
7+
8+
### Bug Fixes
9+
10+
* button disabled bug [#178](https://github.com/djdembeck/bragibooks/issues/178) ([#183](https://github.com/djdembeck/bragibooks/issues/183)) ([ab378d5](https://github.com/djdembeck/bragibooks/commit/ab378d518b37c22535ef4ccae5a2832b093e94b2))
11+
512
## [1.2.0](https://github.com/djdembeck/bragibooks/compare/v1.0.0...v1.2.0) (2023-05-18)
613

714

importer/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.2.0'
1+
__version__ = '1.2.1'

importer/templates/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77
<title>{% block title %}Bragi Books{% endblock %}</title>
88
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
9-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
9+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
1010
{% load static %}
1111
<link rel="shortcut icon" href="{% static 'images/favicon.ico' %}">
1212
<style>

importer/templates/match.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ async function searchAsin(title, author, keywords) {
169169
// Update the select for the calling custom search
170170
updateOptions(select, data)
171171

172+
// update cover image
173+
const counter = select.id.split('-').pop();
174+
updateImage(counter)
175+
172176
// close the search panel
173177
closeSearchPanel();
174178

@@ -177,16 +181,19 @@ async function searchAsin(title, author, keywords) {
177181
}
178182

179183
async function fetchOptions() {
180-
document.querySelectorAll(".asin-select").forEach(async select => {
184+
const selects = document.querySelectorAll(".asin-select");
185+
186+
const searchPromises = Array.from(selects).map(async select => {
181187
const url = "asin-search" + constructQueryParams(select.name.split('/').pop());
182-
let data = await search(url);
183188

189+
const data = await search(url);
184190
updateOptions(select, data);
185191

186192
const counter = select.id.split('-').pop();
187193
updateImage(counter);
188194
});
189195

196+
await Promise.all(searchPromises);
190197
checkAllSelectsHaveValue();
191198
}
192199

requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
celery>=5.2
22
Django>=4.2
33
gunicorn>=20.1.0
4-
kombu==5.3.0b3 # this has the latest update needed to use sqlalchemy>=2.0
5-
Levenshtein==0.20.9
4+
kombu==5.3.0rc2 # this has the latest update needed to use sqlalchemy>=2.0
5+
Levenshtein==0.21.0
66
requests>=2.28
77
sqlalchemy>=2.0.0 # for celery to use sqlite as broker
88
whitenoise==6.4.0

0 commit comments

Comments
 (0)