|
|
|
@ -96,7 +96,7 @@ impl Database {
|
|
|
|
|
println!("Adding archived data for user {id}");
|
|
|
|
|
}
|
|
|
|
|
let (name, discriminator) = {
|
|
|
|
|
let mut iter = legacy.username.split("#");
|
|
|
|
|
let mut iter = legacy.username.split('#');
|
|
|
|
|
let name = iter.next().unwrap().to_owned();
|
|
|
|
|
let discriminator = iter
|
|
|
|
|
.next()
|
|
|
|
@ -118,7 +118,7 @@ impl Database {
|
|
|
|
|
// their username/discriminator since their previous submission
|
|
|
|
|
archive();
|
|
|
|
|
} else {
|
|
|
|
|
match User::fetch(&http, submission.author_id).await {
|
|
|
|
|
match User::fetch(http, submission.author_id).await {
|
|
|
|
|
Ok(user) => {
|
|
|
|
|
self.conn.execute(
|
|
|
|
|
"INSERT INTO User(id, name, discriminator, avatar) VALUES (?1, ?2, ?3, ?4)",
|
|
|
|
|