Allow Clubs and Socs to have accounts again #49

Merged
silver merged 3 commits from #26-clubs-and-socs into main 2024-03-11 21:30:27 +00:00
Showing only changes of commit f5ab63b59e - Show all commits

View file

@ -26,6 +26,12 @@ async fn update(config: &Config) -> tide::Result<()> {
} }
} }
if let Ok(x) = env::var("USERS_CLUBS_SOCIETIES") {
for user in x.split(',').collect::<Vec<&str>>() {
users_tmp.insert(user.to_string());
}
}
// pull from wolves csv // pull from wolves csv
for user in from_csv(&db).await.unwrap_or_default() { for user in from_csv(&db).await.unwrap_or_default() {
users_tmp.insert(user); users_tmp.insert(user);