Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
limbra
limbra
Commits
f1558818
Commit
f1558818
authored
Feb 24, 2020
by
LE GAC Renaud
Browse files
Add the view wizards/update_citations.txt.
parent
de351d05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
views/wizards/update_citations.txt
views/wizards/update_citations.txt
+22
-0
No files found.
views/wizards/update_citations.txt
0 → 100644
View file @
f1558818
{{
from datetime import datetime
line ="."*79
response.write(f"{line}\n")
response.write(f"\t Application: {request.application.upper()}\n\n")
start = request.now
end = datetime.now()
delta = (end - start).total_seconds()
response.write(f"\t Scan start: {start:%d %b %Y %H:%M}\n")
response.write(f"\t Scan end: {end:%d %b %Y %H:%M}\n")
response.write(f"\t Scan duration: {delta:.0f}s\n\n")
response.write(f"\tNumber of articles analysed: {counters.article}\n")
response.write(f"\t URL not well formed: {counters.url_error}\n")
response.write(f"\t HTTP connection error: {counters.http_error}\n")
response.write(f"\t JSON decoding error: {counters.json_error}\n")
response.write(f"\tNumber of articles modified: {counters.insert}\n\n")
}}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment