i keep on forgetting to remove old stuff

This commit is contained in:
Reid 2023-10-31 20:08:20 -07:00
parent 2e9856eee5
commit ad98e71540
Signed by: reidlab
GPG key ID: 6C9EAA3364F962C8
2 changed files with 1 additions and 3 deletions

View file

@ -37,7 +37,6 @@ add `--help` or `-h` when calling the binary for special tools, such as patching
## todo
- add get levels search back (find how to easily do dynamic queries)
- user icons in account management pages
- account settings page
- better web design (make formatting more consistant)

View file

@ -25,11 +25,10 @@ async fn files(file: PathBuf) -> Option<NamedFile> {
#[launch]
async fn rocket() -> _ {
// init stuff
// initiate database stuff
crate::helpers::reupload::init().await;
// data directories
// unhardcore this maybe?
fs::create_dir_all(config::config_get_with_default("db.data_folder", "data".to_string())).expect("failed to create data directory!");
fs::create_dir_all(format!("{}/levels", config::config_get_with_default("db.data_folder", "data".to_string()))).expect("failed to create data directory for levels");