0x0/cleanup.py
Emi Simpson 6d036eeb7d
Add support for expiring files
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
2022-11-22 16:15:50 -05:00

9 lines
174 B
Python
Executable file

#!/usr/bin/env python3
print("This script has been replaced!!")
print("Instead, please run")
print("")
print(" $ FLASK_APP=fhost flask prune --legacy")
print("")
exit(1);