Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NCD data aggregation and classification
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
flg_bachelors
TS
2024
NCD data aggregation and classification
Commits
13a1bbb1
Commit
13a1bbb1
authored
4 months ago
by
ivan.pavlovic
Browse files
Options
Downloads
Patches
Plain Diff
Removed some comments
parent
8297804c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/data_num.py
+6
-6
6 additions, 6 deletions
api/data_num.py
with
6 additions
and
6 deletions
api/data_num.py
+
6
−
6
View file @
13a1bbb1
...
...
@@ -3,11 +3,11 @@ from datetime import datetime, timedelta
import
time
TERMS
=
[
#
'"Noncommunicable+Diseases"', # NCDs (All)
#
'"Diabetes+Mellitus"', # Diabetes (type 1 or 2)
#
'"Neoplasms"', # Cancer
#
'"Respiratory+Tract+Diseases"', # Chronic respiratory disease
#
'"Cardiovascular+Diseases"', # Cardiovascular diseases
'"
Noncommunicable+Diseases
"'
,
# NCDs (All)
'"
Diabetes+Mellitus
"'
,
# Diabetes (type 1 or 2)
'"
Neoplasms
"'
,
# Cancer
'"
Respiratory+Tract+Diseases
"'
,
# Chronic respiratory disease
'"
Cardiovascular+Diseases
"'
,
# Cardiovascular diseases
'"
Mental+Health
"'
,
# Mental Health
'"
Diabetes+Mellitus%2C+Type+1
"'
,
# Diabetes type 1
'"
Diabetes+Mellitus%2C+Type+2
"'
# Diabetes type 2
...
...
@@ -38,7 +38,7 @@ def get_count_for_year(year, term, interval = "month"):
counts
.
append
(
int
(
search_res
[
"
esearchresult
"
][
"
count
"
]))
current_date
=
next_date
time
.
sleep
(
1
)
time
.
sleep
(
1
)
# si plus de 3 requêtes par seconde sinon adresse IP bann (normalement)
max_count
=
max
(
counts
)
min_count
=
min
(
counts
)
...
...
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