Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check for open spaces in sessions is greater or equal one #459

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions pool/app/experiment/repo/repo_statistics.ml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ let has_open_sessions_request =
let open Caqti_request.Infix in
{sql|
SELECT
COUNT(s.uuid) > 1
COUNT(s.uuid) >= 1
FROM
pool_sessions s
LEFT JOIN (
Expand All @@ -114,10 +114,9 @@ let has_open_sessions_request =
let registration_possible pool id =
let open Utils.Lwt_result.Infix in
Database.find pool registration_disabled_request id
||> not
>|> function
| false -> Lwt.return_false
| true -> Database.find pool has_open_sessions_request id
| true -> Lwt.return_false
| false -> Database.find pool has_open_sessions_request id
;;

let sending_invitations_request =
Expand Down