diff --git a/src/bin/mkinvites.rs b/src/bin/mkinvites.rs index e6c7505..2071131 100644 --- a/src/bin/mkinvites.rs +++ b/src/bin/mkinvites.rs @@ -55,10 +55,13 @@ fn main() { } async fn ensure_omega(pool: &SqlitePool) { - User::omega() - .try_insert(pool) - .await - .expect("Could not ensure Omega"); + let omega = User::try_get("omega", pool).await.unwrap(); + if omega.is_none() { + User::omega() + .try_insert(pool) + .await + .expect("Could not ensure Omega"); + } } async fn generate_invites(quest: Iq, number: u8, pool: &SqlitePool) -> Vec { diff --git a/templates/search_watches_page.html b/templates/search_watches_page.html index c082c4c..0c1e62c 100644 --- a/templates/search_watches_page.html +++ b/templates/search_watches_page.html @@ -11,6 +11,7 @@ Title + Link Type Year Watching? diff --git a/templates/watch-search-result.html b/templates/watch-search-result.html index d7c765d..8614876 100644 --- a/templates/watch-search-result.html +++ b/templates/watch-search-result.html @@ -1,5 +1,13 @@ {{watch.title}} + + {% match watch.metadata_url %} + {% when Some with (mdurl) %} + {{ mdurl }} + {% when None %} + {% endmatch %} + + {{watch.kind}} {% call m::get_or_default(watch.year(), "when??") -%}