Compare commits

...

7 Commits

Author SHA1 Message Date
dependabot[bot]
6ec31a1f52
Merge 90717f5d35 into 4a407dfc06 2023-12-26 23:25:19 +00:00
dependabot[bot]
90717f5d35
Bump werkzeug from 2.3.8 to 3.0.1
Bumps [werkzeug](https://github.com/pallets/werkzeug) from 2.3.8 to 3.0.1.
- [Release notes](https://github.com/pallets/werkzeug/releases)
- [Changelog](https://github.com/pallets/werkzeug/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/werkzeug/compare/2.3.8...3.0.1)

---
updated-dependencies:
- dependency-name: werkzeug
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-26 23:25:16 +00:00
4a407dfc06 fixed docker 2023-12-27 02:25:12 +03:00
9a2a351858 minor updates 2023-12-27 02:16:08 +03:00
60b0d7e51c updated requirements 2023-12-27 02:13:04 +03:00
fd8bb6bac6 Merge remote-tracking branch 'origin/main'
# Conflicts:
#	poetry.lock
2023-12-27 01:53:48 +03:00
fc1a1ec7ed fixed akarpov dependecies, minor changes 2023-12-27 01:52:57 +03:00
9 changed files with 776 additions and 647 deletions

View File

@ -29,8 +29,10 @@ def get_track_info(name: str) -> dict:
"artist": "", "artist": "",
"title": "", "title": "",
} }
try:
res = search(name)["tracks"]["items"] res = search(name)["tracks"]["items"]
except TypeError:
return info
if not res: if not res:
return info return info
res = res[0] res = res[0]

View File

@ -29,6 +29,7 @@ def search_ym(name: str):
info = { info = {
"artists": [artist.name for artist in best.artists], "artists": [artist.name for artist in best.artists],
"title": best.title, "title": best.title,
"album": best.albums[0].title,
} }
# getting genre # getting genre

View File

@ -134,7 +134,7 @@
</div> </div>
</main> </main>
<footer class="row bg-light py-1 mt-auto text-center"> <footer class="row bg-light py-1 mt-auto text-center">
<div class="col"> Writen by <a href="/about">sanspie</a>, find source code <a href="https://github.com/Alexander-D-Karpov/akarpov">here</a> </div> <div class="col"> Writen by <a href="https://akarpov.ru/about">sanspie</a>, find source code <a href="https://github.com/Alexander-D-Karpov/akarpov">here</a>. Copyleft akarpov 2023</div>
</footer> </footer>
<div id="toastContainer" class="toast-container position-fixed bottom-0 end-0 p-3"> <div id="toastContainer" class="toast-container position-fixed bottom-0 end-0 p-3">

View File

@ -0,0 +1,17 @@
# Generated by Django 4.2.8 on 2023-12-26 22:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("users", "0012_user_theme"),
]
operations = [
migrations.AddField(
model_name="user",
name="agree_data_to_be_sold",
field=models.BooleanField(default=False),
),
]

View File

@ -29,6 +29,9 @@ class User(AbstractUser, BaseImageModel, ShortLinkModel):
"Left file upload(in bites)", default=0, validators=[MinValueValidator(0)] "Left file upload(in bites)", default=0, validators=[MinValueValidator(0)]
) )
theme = models.ForeignKey("themes.Theme", null=True, on_delete=models.SET_NULL) theme = models.ForeignKey("themes.Theme", null=True, on_delete=models.SET_NULL)
agree_data_to_be_sold = models.BooleanField(
"Agree my data to be sold to vendors", default=False
)
def get_theme_url(self): def get_theme_url(self):
if self.theme_id: if self.theme_id:

View File

@ -23,7 +23,7 @@ class UserDetailView(DetailView):
class UserUpdateView(LoginRequiredMixin, SuccessMessageMixin, UpdateView): class UserUpdateView(LoginRequiredMixin, SuccessMessageMixin, UpdateView):
model = User model = User
fields = ["username", "name", "image", "about"] fields = ["username", "name", "image", "about", "agree_data_to_be_sold"]
success_message = _("Information successfully updated") success_message = _("Information successfully updated")
def get_success_url(self): def get_success_url(self):

View File

@ -27,7 +27,7 @@ WORKDIR ${APP_HOME}
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y build-essential libpq-dev gettext libmagic-dev libjpeg-dev zlib1g-dev && \ apt-get install -y build-essential libpq-dev gettext libmagic-dev libjpeg-dev zlib1g-dev && \
# Dependencies for file preview generation # Dependencies for file preview generation
apt-get install -y webp libimage-exiftool-perl libmagickwand-dev ffmpeg libgdal-dev && \ apt-get install -y webp git libimage-exiftool-perl libmagickwand-dev ffmpeg libgdal-dev && \
# ML dependencies \ # ML dependencies \
# none for now # none for now
apt-get purge -y --auto-remove -o APT:AutoRemove:RecommendsImportant=false && \ apt-get purge -y --auto-remove -o APT:AutoRemove:RecommendsImportant=false && \

1382
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -33,7 +33,7 @@ djangorestframework = "^3.14.0"
django-rest-auth = "^0.9.5" django-rest-auth = "^0.9.5"
django-cors-headers = "^4.0.0" django-cors-headers = "^4.0.0"
drf-spectacular = "^0.26.2" drf-spectacular = "^0.26.2"
werkzeug = {extras = ["watchdog"], version = "^2.3.4"} werkzeug = {extras = ["watchdog"], version = "^3.0.1"}
ipdb = "^0.13.13" ipdb = "^0.13.13"
watchfiles = "^0.18.1" watchfiles = "^0.18.1"
mypy = "^0.991" mypy = "^0.991"
@ -82,7 +82,7 @@ xvfbwrapper = "^0.2.9"
vtk = "^9.2.6" vtk = "^9.2.6"
ffmpeg-python = "^0.2.0" ffmpeg-python = "^0.2.0"
cairosvg = "^2.7.0" cairosvg = "^2.7.0"
spotipy = "2.16.1" spotipy = "^2.23.0"
django-robots = "^5.0" django-robots = "^5.0"
django-tables2 = "^2.5.3" django-tables2 = "^2.5.3"
django-filter = "^23.2" django-filter = "^23.2"
@ -95,7 +95,6 @@ yt-dlp = "^2023.7.6"
pytube = "^15.0.0" pytube = "^15.0.0"
urllib3 = ">=1.26" urllib3 = ">=1.26"
requests = ">=2.25" requests = ">=2.25"
extract-msg = "0.28.7"
pytest-factoryboy = "2.3.1" pytest-factoryboy = "2.3.1"
pytest-xdist = "^3.3.1" pytest-xdist = "^3.3.1"
pytest-mock = "^3.11.1" pytest-mock = "^3.11.1"
@ -103,7 +102,6 @@ pytest-asyncio = "^0.21.1"
pytest-lambda = "^2.2.0" pytest-lambda = "^2.2.0"
pgvector = "^0.2.2" pgvector = "^0.2.2"
pycld2 = "^0.41" pycld2 = "^0.41"
textract = "^1.6.5"
uuid6 = "^2023.5.2" uuid6 = "^2023.5.2"
uvicorn = "^0.24.0.post1" uvicorn = "^0.24.0.post1"
nltk = "^3.8.1" nltk = "^3.8.1"
@ -115,6 +113,8 @@ django-elasticsearch-dsl = "^8.0"
elasticsearch-dsl = "^8.11.0" elasticsearch-dsl = "^8.11.0"
numpy = "1.25.2" numpy = "1.25.2"
deep-translator = "1.4.2" deep-translator = "1.4.2"
textract = {git = "https://github.com/Alexander-D-Karpov/textract.git", branch = "master"}
django-otp = "^1.3.0"
[build-system] [build-system]