This website works better with JavaScript.
Home
Explore
Help
Sign In
rick
/
admidio_python_api
Watch
3
Star
0
Fork
0
Code
Issues
1
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Removing some debug strings
master
Rick
6 years ago
parent
beb43dcd12
commit
ebdd8f613e
3 changed files
with
3 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
admidio.py
+0
-1
group.py
+2
-0
main.py
+ 1
- 0
admidio.py
View File
@ -24,6 +24,7 @@ class Admidio:
# Get the id for event confirmation role.
# So it can exclude them from Groups
sql
=
"""
SELECT cat_id
FROM
adm_categories
WHERE
cat_name_intern
=
'
CONFIRMATION_OF_PARTICIPATION
'
"""
+ 0
- 1
group.py
View File
@ -14,7 +14,6 @@ class Group:
self
.
__c
.
execute
(
sql
)
for
row
in
self
.
__c
.
fetchall
(
)
:
print
(
row
)
try
:
if
row
[
1
]
==
1
:
self
.
leaders
.
append
(
admidio
.
getMemberFromID
(
row
[
0
]
)
)
+ 2
- 0
main.py
View File
@ -4,3 +4,5 @@ import config
adm
=
Admidio
(
config
.
DATABASE
[
'
host
'
]
,
config
.
DATABASE
[
'
user
'
]
,
config
.
DATABASE
[
'
pass
'
]
,
config
.
DATABASE
[
'
db
'
]
)
print
(
)
Write
Preview
Loading…
Cancel
Save