From e145947d052450618af3ba094e66a27c3c7f86e4 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Sat, 1 Jan 2022 11:26:49 +0100 Subject: match form stubs --- planetwars-server/src/db/bots.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'planetwars-server/src/db') diff --git a/planetwars-server/src/db/bots.rs b/planetwars-server/src/db/bots.rs index eb66c05..bef69c0 100644 --- a/planetwars-server/src/db/bots.rs +++ b/planetwars-server/src/db/bots.rs @@ -34,6 +34,11 @@ pub fn find_bots_by_owner(owner_id: i32, conn: &PgConnection) -> QueryResult QueryResult> { + // TODO: filter out bots that cannot be run (have no valid code bundle associated with them) + bots::table.get_results(conn) +} + #[derive(Insertable)] #[table_name = "code_bundles"] pub struct NewCodeBundle<'a> { -- cgit v1.2.3