Skip to content

Commit

Permalink
Merge pull request #188 from djdembeck/develop
Browse files Browse the repository at this point in the history
chore(release): 1.2.1
  • Loading branch information
djdembeck authored Jun 9, 2023
2 parents 4780acf + c6edf79 commit d0480ec
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,28 @@ jobs:
uses: actions/checkout@v3

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

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

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@c4ee3adeed93b1fa6a762f209fb01608c1a22f1e
uses: docker/metadata-action@dbbf01822bb698575d92e1ee5b9229d58745b0c6
with:
images: |
djdembeck/bragibooks
ghcr.io/${{ github.repository }}
- name: Build and push Docker images
uses: docker/build-push-action@eafaea8d0f5853934deece2ffa67af59d936562b
uses: docker/build-push-action@44ea916f6c540f9302d50c2b1e5a8dc071f15cdf
with:
file: docker/Dockerfile
context: .
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

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.

### [1.2.1](https://github.com/djdembeck/bragibooks/compare/v1.2.0...v1.2.1) (2023-06-09)


### Bug Fixes

* 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))

## [1.2.0](https://github.com/djdembeck/bragibooks/compare/v1.0.0...v1.2.0) (2023-05-18)


Expand Down
2 changes: 1 addition & 1 deletion importer/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.2.0'
__version__ = '1.2.1'
2 changes: 1 addition & 1 deletion importer/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}Bragi Books{% endblock %}</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
{% load static %}
<link rel="shortcut icon" href="{% static 'images/favicon.ico' %}">
<style>
Expand Down
11 changes: 9 additions & 2 deletions importer/templates/match.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ async function searchAsin(title, author, keywords) {
// Update the select for the calling custom search
updateOptions(select, data)

// update cover image
const counter = select.id.split('-').pop();
updateImage(counter)

// close the search panel
closeSearchPanel();

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

async function fetchOptions() {
document.querySelectorAll(".asin-select").forEach(async select => {
const selects = document.querySelectorAll(".asin-select");

const searchPromises = Array.from(selects).map(async select => {
const url = "asin-search" + constructQueryParams(select.name.split('/').pop());
let data = await search(url);

const data = await search(url);
updateOptions(select, data);

const counter = select.id.split('-').pop();
updateImage(counter);
});

await Promise.all(searchPromises);
checkAllSelectsHaveValue();
}

Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
celery>=5.2
Django>=4.2
gunicorn>=20.1.0
kombu==5.3.0b3 # this has the latest update needed to use sqlalchemy>=2.0
Levenshtein==0.20.9
kombu==5.3.0rc2 # this has the latest update needed to use sqlalchemy>=2.0
Levenshtein==0.21.0
requests>=2.28
sqlalchemy>=2.0.0 # for celery to use sqlite as broker
whitenoise==6.4.0

0 comments on commit d0480ec

Please sign in to comment.