|
a/Allura/allura/model/notification.py |
|
b/Allura/allura/model/notification.py |
|
... |
|
... |
346 |
tool_already_subscribed = cls.query.get(user_id=user_id,
|
346 |
tool_already_subscribed = cls.query.get(user_id=user_id,
|
347 |
project_id=project_id,
|
347 |
project_id=project_id,
|
348 |
app_config_id=app_config_id,
|
348 |
app_config_id=app_config_id,
|
349 |
artifact_index_id=None)
|
349 |
artifact_index_id=None)
|
350 |
if tool_already_subscribed:
|
350 |
if tool_already_subscribed:
|
351 |
log.debug('Tried to subscribe to artifact %s, while there is a tool subscription', artifact)
|
|
|
352 |
return
|
351 |
return
|
353 |
if artifact is None:
|
352 |
if artifact is None:
|
354 |
artifact_title = 'All artifacts'
|
353 |
artifact_title = 'All artifacts'
|
355 |
artifact_url = None
|
354 |
artifact_url = None
|
356 |
artifact_index_id = None
|
355 |
artifact_index_id = None
|