Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
856dc56d
Commit
856dc56d
authored
Jan 28, 2016
by
PkSM3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1000 sample
parent
2a5c2a8a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
views.py
scrappers/scrap_pubmed/views.py
+1
-2
project.html
templates/project.html
+3
-3
No files found.
scrappers/scrap_pubmed/views.py
View file @
856dc56d
...
@@ -46,8 +46,7 @@ def getGlobalStats(request ):
...
@@ -46,8 +46,7 @@ def getGlobalStats(request ):
alist
=
[
"bar"
,
"foo"
]
alist
=
[
"bar"
,
"foo"
]
if
request
.
method
==
"POST"
:
if
request
.
method
==
"POST"
:
#N = 1000
N
=
1000
N
=
300
query
=
request
.
POST
[
"query"
]
query
=
request
.
POST
[
"query"
]
print
(
"LOG::TIME:_ "
+
datetime
.
datetime
.
now
()
.
isoformat
()
+
" query ="
,
query
)
print
(
"LOG::TIME:_ "
+
datetime
.
datetime
.
now
()
.
isoformat
()
+
" query ="
,
query
)
print
(
"LOG::TIME:_ "
+
datetime
.
datetime
.
now
()
.
isoformat
()
+
" N ="
,
N
)
print
(
"LOG::TIME:_ "
+
datetime
.
datetime
.
now
()
.
isoformat
()
+
" N ="
,
N
)
...
...
templates/project.html
View file @
856dc56d
...
@@ -299,7 +299,7 @@
...
@@ -299,7 +299,7 @@
var
origQuery
=
$
(
"#id_name"
).
val
()
var
origQuery
=
$
(
"#id_name"
).
val
()
console
.
log
(
"printing the results:"
)
console
.
log
(
"printing the results:"
)
console
.
log
(
origQuery
)
console
.
log
(
origQuery
)
testISTEX
(
origQuery
.
replace
(
" "
,
"+"
),
3
00
)
testISTEX
(
origQuery
.
replace
(
" "
,
"+"
),
10
00
)
}
}
}
}
else
{
else
{
...
@@ -349,7 +349,7 @@
...
@@ -349,7 +349,7 @@
console
.
log
(
"enabling "
+
"#"
+
value
.
id
)
console
.
log
(
"enabling "
+
"#"
+
value
.
id
)
$
(
"#"
+
value
.
id
).
attr
(
'onclick'
,
'getGlobalResults(this);'
);
$
(
"#"
+
value
.
id
).
attr
(
'onclick'
,
'getGlobalResults(this);'
);
// $("#submit_thing").prop('disabled' , false)
// $("#submit_thing").prop('disabled' , false)
$
(
"#submit_thing"
).
html
(
"Process a
3
00 sample!"
)
$
(
"#submit_thing"
).
html
(
"Process a
10
00 sample!"
)
thequeries
=
data
thequeries
=
data
var
N
=
0
,
k
=
0
;
var
N
=
0
,
k
=
0
;
...
@@ -388,7 +388,7 @@
...
@@ -388,7 +388,7 @@
console
.
log
(
"enabling "
+
"#"
+
value
.
id
)
console
.
log
(
"enabling "
+
"#"
+
value
.
id
)
$
(
"#"
+
value
.
id
).
attr
(
'onclick'
,
'getGlobalResults(this);'
);
$
(
"#"
+
value
.
id
).
attr
(
'onclick'
,
'getGlobalResults(this);'
);
// $("#submit_thing").prop('disabled' , false)
// $("#submit_thing").prop('disabled' , false)
$
(
"#submit_thing"
).
html
(
"Process a
3
00 sample!"
)
$
(
"#submit_thing"
).
html
(
"Process a
10
00 sample!"
)
thequeries
=
data
thequeries
=
data
var
N
=
data
.
length
,
k
=
0
;
var
N
=
data
.
length
,
k
=
0
;
...
...
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