Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
eossr
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
Container 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
Admin message
Authenticating with a password
with git over http
works again
. More information
here
.
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ESCAPE2020
WP3
eossr
Commits
bdae298a
Commit
bdae298a
authored
3 years ago
by
Enrique Garcia
Browse files
Options
Downloads
Patches
Plain Diff
set default size of requests answers to 50
parent
b768b363
No related branches found
No related tags found
1 merge request
!57
eossr upload unique function
Pipeline
#141446
passed
3 years ago
Stage: install
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
eossr/api/zenodo/__init__.py
+5
-0
5 additions, 0 deletions
eossr/api/zenodo/__init__.py
with
5 additions
and
0 deletions
eossr/api/zenodo/__init__.py
+
5
−
0
View file @
bdae298a
...
...
@@ -53,6 +53,10 @@ class ZenodoAPI:
- Finds all the records of a user (defined by the zenodo token)
- Searches for similar records within all records associated to an user.
Please note that every request.json() answer has been limited to 50 elements. You can set this value
as follows (once ZenodAPI has been inialised, for example):
z = ZenodoApi(token)
z.parameters.update({
'
size
'
: INTEGER_NUMBER)
:param access_token: str
Personal access token to (sandbox.)zenodo.org/api
...
...
@@ -69,6 +73,7 @@ class ZenodoAPI:
self
.
access_token
=
access_token
self
.
parameters
=
{
'
access_token
'
:
self
.
access_token
}
self
.
parameters
.
setdefault
(
'
size
'
,
50
)
self
.
_root_dir
=
Path
(
proj_root_dir
)
@property
...
...
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