pub fn put_question_in_bucket(question_uuid: QuestionUuid, conn: &PgConnection) -> BackendResult<QuestionUuid> {
        use crate::schema::questions::{
            self,
            dsl::*,
        };

        let m_question_uuid: Uuid = question_uuid.0;

        let target = questions.filter(questions::uuid.eq(m_question_uuid));
        diesel::update(target)
            .set(on_floor.eq(false))
            .execute(conn)
            .map_err(handle_err::<Question>)?;
        Ok(question_uuid)
    }
/// Puts the question in the metaphorical bucket, not the DB table.
/// All this does is set a boolean indicating if the question is avalable for random selection or not.
Puts the question in the metaphorical bucket, not the DB table.
All this does is set a boolean indicating if the question is avalable for random selection or not.
Puts the question in the metaphorical bucket not the DB table . All this does is set a boolean indicating if the question is avalable for random selection or not .
pub fn put_question_in_bucket(question_uuid: QuestionUuid, conn: &PgConnection) -> BackendResult<QuestionUuid> {
        use crate::schema::questions::{
            self,
            dsl::*,
        };
        let m_question_uuid: Uuid = question_uuid.0;
        let target = questions.filter(questions::uuid.eq(m_question_uuid));
        diesel::update(target)
            .set(on_floor.eq(false))
            .execute(conn)
            .map_err(handle_err::<Question>)?;
        Ok(question_uuid)
    }
pub fn put_question_in_bucket ( question_uuid : QuestionUuid , conn : & PgConnection ) -> BackendResult < QuestionUuid > { use crate :: schema :: questions :: { self , dsl :: * , } ; let m_question_uuid : Uuid = question_uuid . 0 ; let target = questions . filter ( questions :: uuid . eq ( m_question_uuid ) ) ; diesel :: update ( target ) . set ( on_floor . eq ( false ) ) . execute ( conn ) . map_err ( handle_err :: < Question > ) ? ; Ok ( question_uuid ) }
Puts the question in the metaphorical bucket, not the DB table.
Puts the question in the metaphorical bucket not the DB table .
question_uuid
QuestionUuid
conn
&PgConnection
question_uuid
QuestionUuid
conn
&PgConnection