mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-12 23:27:22 +00:00
VC/Zoom: Do not create empty log entries
This commit is contained in:
parent
d922c6b17e
commit
ef8e04643f
@ -520,7 +520,10 @@ class ZoomPlugin(VCPluginMixin, IndicoPlugin):
|
||||
|
||||
def _check_meetings(self, sender, obj, **kwargs):
|
||||
zoom_rooms = [room.vc_room for room in obj.vc_room_associations if room.vc_room.type == 'zoom']
|
||||
log_entry = obj.log(EventLogRealm.event, LogKind.change, 'Videoconference', 'Schedule updated', data={
|
||||
if not zoom_rooms:
|
||||
return
|
||||
|
||||
log_entry = obj.log(EventLogRealm.event, LogKind.change, 'Videoconference', 'Zoom schedule updated', data={
|
||||
'Meetings': ', '.join([f'{room.name} (ID: {room.id})' for room in zoom_rooms]),
|
||||
'Date': obj.start_dt.isoformat(),
|
||||
'State': 'pending'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user