Skip to content

Commit

Permalink
Merge pull request #69 from toddrob99/beta
Browse files Browse the repository at this point in the history
v3.2
* Docker/build process enhancements
* Fix error in French translation
* Fix logging.handlers error
* Pin python-telegram-bot to v13.15
  • Loading branch information
toddrob99 authored Jan 13, 2023
2 parents ab6a59e + 3785975 commit 8b82ea6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
8 changes: 2 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
FROM python:3.9-alpine
FROM python:3.11-slim

LABEL Name=Searcharr Version=1.1
LABEL Name=Searcharr Version=1.2

WORKDIR /app
ADD . /app

RUN apk add --no-cache --virtual .build-deps gcc musl-dev libffi-dev openssl-dev python3-dev rust cargo

RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install -r requirements.txt

RUN apk del .build-deps gcc musl-dev libffi-dev openssl-dev python3-dev rust cargo

CMD ["python3", "searcharr.py"]
2 changes: 1 addition & 1 deletion lang/fr-fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ no_language_profiles: "Erreur lors de l'ajout {kind} : aucun profil de langue ac
all_seasons: Toutes saisons
first_season: Première saison
latest_season: Dernière saison
added: On a réussi à ajouter {titre} !
added: On a réussi à ajouter {title} !
unknown_error_adding: Une erreur non spécifiée a été rencontrée lors de l'ajout de {kind} !
removed_user: Tous les accès de l'utilisateur ID [{user}] ont été supprimés avec succès !
unknown_error_removing_user: Erreur non spécifiée rencontrée lors de la suppression de l'identifiant de l'utilisateur [{user}] !
Expand Down
3 changes: 2 additions & 1 deletion log.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
https://github.com/toddrob99/searcharr
"""
import logging
from logging.handlers import TimedRotatingFileHandler
import os


Expand All @@ -30,7 +31,7 @@ def set_up_logger(logger_name, verbose, console):
logPath = os.path.join(os.path.dirname(os.path.realpath(__file__)), "logs")
if not os.path.exists(logPath):
os.makedirs(logPath)
fh = logging.handlers.TimedRotatingFileHandler(
fh = TimedRotatingFileHandler(
os.path.join(logPath, fileName), when="midnight", interval=1, backupCount=7
)
fh.setFormatter(formatter)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
argparse
requests
python-telegram-bot
python-telegram-bot==13.15
pyyaml
arrow
2 changes: 1 addition & 1 deletion searcharr.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import readarr
import settings

__version__ = "3.0"
__version__ = "3.2"

DBPATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "data")
DBFILE = "searcharr.db"
Expand Down

0 comments on commit 8b82ea6

Please sign in to comment.