Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ciur committed Jun 18, 2024
1 parent f66456c commit f5b2771
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion s3worker/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def get_bucket_name():


def get_prefix():
return settings.papermerge__s3__object_prefix
return settings.papermerge__main__prefix


def get_media_root():
Expand Down
2 changes: 1 addition & 1 deletion s3worker/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ class Settings(BaseSettings):
aws_secret_access_key: str
aws_region_name: str | None = None
papermerge__s3__bucket_name: str
papermerge__s3__object_prefix: str = ''
papermerge__redis__url: str | None = None
papermerge__main__prefix: str = ''
papermerge__main__media_root: str
papermerge__main__logging_cfg: Path | None = None
papermerge__database__url: str = 'sqlite:////db/db.sqlite3'
Expand Down
3 changes: 1 addition & 2 deletions s3worker/db/models.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
from uuid import UUID
from sqlalchemy import Column, ForeignKey, String, Table, func
from sqlalchemy import ForeignKey
from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column, relationship


class Base(DeclarativeBase):
pass



class Document(Base):
__tablename__ = "core_document"

Expand Down

0 comments on commit f5b2771

Please sign in to comment.