Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
wizards
mffzoom
Commits
5a68ab6d
Commit
5a68ab6d
authored
Mar 24, 2020
by
Martin Mareš
Browse files
Hook: Skip deleted occurrences
parent
af744b2b
Changes
2
Hide whitespace changes
Inline
Side-by-side
hook/fetch-meetings.py
View file @
5a68ab6d
...
...
@@ -57,6 +57,9 @@ def insert_meeting(uid, meet):
# Recurrent meetings have a list of occurrences
for
occ
in
meet
[
"occurrences"
]:
occ_id
=
occ
[
'occurrence_id'
]
if
occ
.
get
(
'status'
,
""
)
==
'deleted'
:
print
(
f
"Meeting
{
meeting_id
}
.
{
occ_id
}
: Marked as deleted"
)
continue
print
(
f
"Meeting
{
meeting_id
}
.
{
occ_id
}
: Scheduling"
)
db
.
execute
(
"""
INSERT INTO zoom_schedule
...
...
hook/hook.wsgi
View file @
5a68ab6d
...
...
@@ -64,6 +64,9 @@ class HookApp:
def
create_schedule
(
self
,
mid
,
meeting_id
,
occurrence_id
,
occ
):
if
occ
.
get
(
'status'
,
""
)
==
'deleted'
:
self
.
log
(
f
"Meeting
{
meeting_id
}
.
{
occurrence_id
}
: Skipping deleted occurrence"
)
return
self
.
log
(
f
"Meeting
{
meeting_id
}
.
{
occurrence_id
}
: Scheduling"
)
db_query
(
"""
INSERT INTO zoom_schedule
...
...
Write
Preview
Supports
Markdown
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