Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beat.web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
beat
beat.web
Commits
56c43fbf
Commit
56c43fbf
authored
4 years ago
by
Samuel GAIST
Browse files
Options
Downloads
Patches
Plain Diff
[reports][commands][send_report_cleanup_warning_and_cleanup] Create attestation link in code
parent
1260bd49
No related branches found
Branches containing commit
No related tags found
2 merge requests
!379
Fix reports url prefix usage
,
!342
Django 3 migration
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
beat/web/reports/management/commands/send_report_cleanup_warning_and_cleanup.py
+4
-1
4 additions, 1 deletion
...ement/commands/send_report_cleanup_warning_and_cleanup.py
with
4 additions
and
1 deletion
beat/web/reports/management/commands/send_report_cleanup_warning_and_cleanup.py
+
4
−
1
View file @
56c43fbf
...
...
@@ -63,6 +63,9 @@ class Command(BaseCommand):
template_path
=
"
reports/report_about_to_expire_email.txt
"
for
report
in
reports_about_to_expire
:
subject
=
"
Report %s is about to expire
"
%
report
.
name
report_link
=
(
f
"
https://
{
current_site
.
domain
}
"
+
report
.
get_absolute_url
()
)
send_mail
(
subject
,
...
...
@@ -71,7 +74,7 @@ class Command(BaseCommand):
{
"
report
"
:
report
,
"
beat_version
"
:
__version__
,
"
site
"
:
current_site
,
"
report_link
"
:
report_link
,
},
),
settings
.
DEFAULT_FROM_EMAIL
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment