@staticmethod
    def survey_answer_duplicate(item):

        data = item.data
        qid = data.get("question_id")
        rid = data.get("complete_id")
        table = item.table
        query = (table.question_id == qid) & \
                (table.complete_id == rid)
        duplicate = current.db(query).select(table.id,
                                             limitby=(0, 1)).first()
        if duplicate:
            item.id = duplicate.id
            item.method = item.METHOD.UPDATE

# =============================================================================
Returns a dict of the allowable method parameters
dataset/ETHPy150Open sahana/eden/modules/s3db/survey.py/S3SurveyCompleteModel.survey_answer_duplicate--crossover with--dataset/ETHPy150Open ooici/pyon/pyon/util/execute.py/get_method_arguments