Fix import

This commit is contained in:
Jean-Marie Favreau 2024-12-26 16:16:35 +01:00
parent 6b79949002
commit 0d62660c2b
2 changed files with 2 additions and 2 deletions

View File

@ -323,7 +323,7 @@ def import_events_from_url(self, url, cat, tags, force=False, user_id=None):
if acquired:
logger.info("URL import: {}".format(self.request.id))
logger.info("URL import: {}".format(self.request.id) + " force " + str(force))
# clean url

View File

@ -300,7 +300,7 @@ def update_from_source(request, pk):
if url is None:
messages.warning(request, _("The event cannot be updated because the import process is not available for the referenced sources."))
else:
import_events_from_url.delay(url, None, True, user_id=request.user.pk if request.user else None)
import_events_from_url.delay(url, None, None, True, user_id=request.user.pk if request.user else None)
messages.success(request, _("The event update has been queued and will be completed shortly."))
return HttpResponseRedirect(event.get_absolute_url())