mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-13 07:29:39 +00:00
LiveSync: Only get excluded categories if needed
This commit is contained in:
parent
8c9f740c60
commit
9f1e29d293
@ -165,10 +165,9 @@ def _attachment_changed(attachment_or_folder, **kwargs):
|
||||
|
||||
|
||||
def _apply_changes(sender, **kwargs):
|
||||
excluded_categories = get_excluded_categories()
|
||||
|
||||
if not hasattr(g, 'livesync_changes'):
|
||||
return
|
||||
excluded_categories = get_excluded_categories()
|
||||
for ref, changes in g.livesync_changes.iteritems():
|
||||
LiveSyncQueueEntry.create(changes, ref, excluded_categories=excluded_categories)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user