Commit 9bb66881 authored by Tanguy Dubois's avatar Tanguy Dubois

Ajout de fonctionnalités au client beequick pour export dans db

parent 8c015961
......@@ -48,6 +48,13 @@ class BeequickClient:
inactives = self.getEtudes(params)
return actives + inactives
def getEtudeInformations(self, id, params = {}):
return self.get("etudes/" + str(id), params).json()
def getEtudeActions(self, id, params = {}):
params.update({"etude_id":id})
return self.get("actions", params).json()
# Défaut : membres actifs
def getMembres(self, params = {}):
return self.get("etudiants", params).json()
......
......@@ -3,4 +3,8 @@ import sqlite3
bq = BeequickClient.admin()
print(bq.getAllEtudes()[0])
\ No newline at end of file
etude = bq.getAllEtudes()[0]
print(etude)
print(bq.getEtudeActions(etude["id"]))
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment