valid search for individual report using formula

This commit is contained in:
Florian du Garage Num 2023-05-24 12:47:09 +02:00
parent 5f65165d58
commit ae86150b67

View File

@ -277,7 +277,7 @@ def show_workshop(module_id, workshop_id):
def show_workshop_individual_report(module_id, workshop_id, participant_id):
workshop_reports = fetch_api('workshop_individual_reports')
print("this are all reports: " + str(workshop_reports.get_all()))
report_formula = "AND(Seance = {}, Participant = {})".format(str(workshop_id), str(participant_id))
report_formula = "AND({{Seance_Id}}='{}',{{Participant_Id}}='{}')".format(str(workshop_id), str(participant_id))
print(report_formula)
report = workshop_reports.get_all(formula=report_formula)
print("Report found : " + str(report))