Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
P
projet i2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Samy Haffoudhi
projet i2
Commits
9bb66881
Commit
9bb66881
authored
Jan 03, 2022
by
Tanguy Dubois
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ajout de fonctionnalités au client beequick pour export dans db
parent
8c015961
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
BeequickClient.py
beequick/BeequickClient.py
+7
-0
beequick.db
beequick/beequick.db
+0
-0
bqHarvest.py
beequick/bqHarvest.py
+5
-1
No files found.
beequick/BeequickClient.py
View file @
9bb66881
...
...
@@ -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
()
...
...
beequick/beequick.db
deleted
100644 → 0
View file @
8c015961
File deleted
beequick/bqHarvest.py
View file @
9bb66881
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment