Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
esap-userprofile-python-client
Manage
Activity
Members
Labels
Plan
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASTRON SDC
ESCAPE WP5
esap-userprofile-python-client
Merge requests
!3
Master
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Closed
Master
master
into
alta-connector
Overview
0
Commits
2
Pipelines
0
Changes
4
Closed
Master
Nico Vermaas
requested to merge
master
into
alta-connector
Jul 19, 2021
Overview
0
Commits
2
Pipelines
0
Changes
4
0
0
Merge request reports
Compare
alta-connector
alta-connector (base)
and
latest version
latest version
d934c2f4
2 commits,
Jul 19, 2021
4 files
+
33
−
16
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
alta/alta_connector.py
+
2
−
1
View file @ d934c2f4
Show full file
@@ -9,6 +9,7 @@ from typing import Union, Optional
@@ -9,6 +9,7 @@ from typing import Union, Optional
class
alta_connector
:
class
alta_connector
:
name
=
"
alta
"
name
=
"
alta
"
archive
=
"
apertif
"
def
basket_item_to_pandas
(
def
basket_item_to_pandas
(
self
,
basket_item
:
Union
[
dict
,
pd
.
Series
],
validate
:
bool
=
True
self
,
basket_item
:
Union
[
dict
,
pd
.
Series
],
validate
:
bool
=
True
@@ -67,7 +68,7 @@ class alta_connector:
@@ -67,7 +68,7 @@ class alta_connector:
"""
"""
item_data
=
json
.
loads
(
basket_item
[
"
item_data
"
])
item_data
=
json
.
loads
(
basket_item
[
"
item_data
"
])
if
"
archive
"
in
item_data
and
item_data
[
"
archive
"
]
==
"
apertif
"
:
if
"
archive
"
in
item_data
and
item_data
[
"
archive
"
]
==
self
.
archive
:
if
return_loaded
:
if
return_loaded
:
return
item_data
return
item_data
else
:
else
:
Loading