i keep on forgetting to remove old stuff
This commit is contained in:
parent
2e9856eee5
commit
ad98e71540
2 changed files with 1 additions and 3 deletions
|
@ -37,7 +37,6 @@ add `--help` or `-h` when calling the binary for special tools, such as patching
|
||||||
|
|
||||||
## todo
|
## todo
|
||||||
|
|
||||||
- add get levels search back (find how to easily do dynamic queries)
|
|
||||||
- user icons in account management pages
|
- user icons in account management pages
|
||||||
- account settings page
|
- account settings page
|
||||||
- better web design (make formatting more consistant)
|
- better web design (make formatting more consistant)
|
||||||
|
|
|
@ -25,11 +25,10 @@ async fn files(file: PathBuf) -> Option<NamedFile> {
|
||||||
|
|
||||||
#[launch]
|
#[launch]
|
||||||
async fn rocket() -> _ {
|
async fn rocket() -> _ {
|
||||||
// init stuff
|
// initiate database stuff
|
||||||
crate::helpers::reupload::init().await;
|
crate::helpers::reupload::init().await;
|
||||||
|
|
||||||
// data directories
|
// 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(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");
|
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");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue