<feed xmlns='http://www.w3.org/2005/Atom'>
<title>0x0.git/cleanup.py, branch master</title>
<subtitle>[MIRROR] Repo for No-bullshit file hosting and URL Shortening Service 0x0.st
</subtitle>
<id>https://git.bensanders.xyz/0x0.git/atom?h=master</id>
<link rel='self' href='https://git.bensanders.xyz/0x0.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.bensanders.xyz/0x0.git/'/>
<updated>2024-09-27T16:30:33+00:00</updated>
<entry>
<title>PEP8 compliance</title>
<updated>2024-09-27T16:30:33+00:00</updated>
<author>
<name>Mia Herkt</name>
<email>mia@0x0.st</email>
</author>
<published>2024-09-27T15:39:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bensanders.xyz/0x0.git/commit/?id=de19212a719b0bc6ea5455b3e32072a76d021df6'/>
<id>urn:sha1:de19212a719b0bc6ea5455b3e32072a76d021df6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add support for expiring files</title>
<updated>2022-11-29T12:09:26+00:00</updated>
<author>
<name>Emi Simpson</name>
<email>emi@alchemi.dev</email>
</author>
<published>2022-11-22T21:15:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bensanders.xyz/0x0.git/commit/?id=af4b3b06c0d75a01c1fa59f1f6a4bae12e69daa5'/>
<id>urn:sha1:af4b3b06c0d75a01c1fa59f1f6a4bae12e69daa5</id>
<content type='text'>
SUPPLEMENTALLY:
- Add an `expiration` field to the `file` table of the database
- Produce a migration for the above change
- Overhaul the cleanup script, and integrate into fhost.py
  (now run using FLASK_APP=fhost flask prune)
- Replace the old cleanup script with a deprecation notice
- Add information about how to expire files to the index
- Update the README with information about the new script

Squashed commits:

Add a note explaining that expired files aren't immediately removed

Show correct times on the index page graph

Improve the migration script, removing the need for --legacy

Use automap in place of an explicit file map in migration

Remove vestigial `touch()`

Don't crash when upgrading a fresh database

Remove vestigial warning about legacy files

More efficiently filter to unexpired files when migrating

https://git.0x0.st/mia/0x0/pulls/72#issuecomment-224

Coalesce updates to the database during migration

https://git.0x0.st/mia/0x0/pulls/72#issuecomment-226

Remove vestigial database model

https://git.0x0.st/mia/0x0/pulls/72#issuecomment-261

prune:  Stream expired files from the database

(as opposed to collecting them all first)

config.example.py:  Add min &amp; max expiration + description
</content>
</entry>
<entry>
<title>Fix some flake8 errors in cleanup and nsfw_detect</title>
<updated>2021-08-06T19:19:08+00:00</updated>
<author>
<name>Nikolas Nyby</name>
<email>nikolas@gnu.org</email>
</author>
<published>2021-08-06T19:18:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bensanders.xyz/0x0.git/commit/?id=b8def71a94bd516d1b3bc684e0db704a2d177d7a'/>
<id>urn:sha1:b8def71a94bd516d1b3bc684e0db704a2d177d7a</id>
<content type='text'>
Just some minor code cleanup
</content>
</entry>
<entry>
<title>Change license to EUPL</title>
<updated>2020-11-03T03:01:30+00:00</updated>
<author>
<name>Mia Herkt</name>
<email>mia@0x0.st</email>
</author>
<published>2020-11-03T03:01:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bensanders.xyz/0x0.git/commit/?id=a4d496d42de4f67b3f4a5ebc67cf216b4206f424'/>
<id>urn:sha1:a4d496d42de4f67b3f4a5ebc67cf216b4206f424</id>
<content type='text'>
</content>
</entry>
<entry>
<title>init</title>
<updated>2016-11-01T04:25:58+00:00</updated>
<author>
<name>Martin Herkt</name>
<email>lachs0r@srsfckn.biz</email>
</author>
<published>2016-11-01T04:17:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.bensanders.xyz/0x0.git/commit/?id=56f0295be203771f59e94162b62fa17d4fea54a3'/>
<id>urn:sha1:56f0295be203771f59e94162b62fa17d4fea54a3</id>
<content type='text'>
</content>
</entry>
</feed>
