mirror of
https://git.0x0.st/mia/0x0.git
synced 2025-04-19 14:53:02 +02:00
Remove vestigial database model
https://git.0x0.st/mia/0x0/pulls/72#issuecomment-261
This commit is contained in:
parent
55ee3740b0
commit
60db7938c8
1 changed files with 0 additions and 9 deletions
|
@ -37,15 +37,6 @@ def get_max_lifespan(filesize: int) -> int:
|
||||||
max_size = current_app.config.get("MAX_CONTENT_LENGTH", 256 * 1024 * 1024)
|
max_size = current_app.config.get("MAX_CONTENT_LENGTH", 256 * 1024 * 1024)
|
||||||
return min_exp + int((-max_exp + min_exp) * (filesize / max_size - 1) ** 3)
|
return min_exp + int((-max_exp + min_exp) * (filesize / max_size - 1) ** 3)
|
||||||
|
|
||||||
db = SQLAlchemy(current_app.__weakref__())
|
|
||||||
|
|
||||||
# Representation of the updated (future) File table
|
|
||||||
UpdatedFile = sa.table('file',
|
|
||||||
# We only need to describe the columns that are relevent to us
|
|
||||||
sa.column('id', db.Integer),
|
|
||||||
sa.column('expiration', db.BigInteger)
|
|
||||||
)
|
|
||||||
|
|
||||||
Base = automap_base()
|
Base = automap_base()
|
||||||
|
|
||||||
def upgrade():
|
def upgrade():
|
||||||
|
|
Loading…
Add table
Reference in a new issue