Skip to content

Commit

Permalink
Use formatted form for SSO (#556)
Browse files Browse the repository at this point in the history
* Use formatted form for SSO

* Update rocks to access Tisserand
  • Loading branch information
JulienPeloton authored Jan 18, 2024
1 parent eb75e6b commit 82eadfd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions apps/sso/cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@
import textwrap

def get_sso_data(ssnamenr):
"""
""" Extract SSO data from various providers (SSODNET, MPC)
"""
data = rocks.Rock(
ssnamenr,
datacloud=['phase_functions', 'spins'],
skip_id_check=False
)
if data.id_ == '':
Expand Down Expand Up @@ -201,7 +200,7 @@ def card_sso_left(ssnamenr):
outline=True,
id='IMCCE',
target="_blank",
href='https://ssp.imcce.fr/webservices/ssodnet/api/ssocard.php?q={}'.format(data.name.replace(' ', '_') if data.name else data.name)
href='https://ssp.imcce.fr/forms/ssocard/{}'.format(data.id_)
), width=4),
dbc.Col(
dbc.Button(
Expand Down Expand Up @@ -482,7 +481,7 @@ def card_sso_rocks_params(data):

for _, avail_spin in enumerate(data.parameters.physical.spin):
text += "\n"
text += """<h6 children="{}" class="dashed" style="margin-top: 5px; margin-bottom: 0;"/>\n\n""".format(avail_spin.method[0].shortbib)
text += """<h6 children="{}" class="dashed" style="margin-top: 5px; margin-bottom: 0;"/>\n\n""".format(avail_spin.bibref.shortbib)
text += "RA0 (deg): `{}`\n".format(avail_spin.RA0.value)
text += "DEC0 (deg): `{}`\n".format(avail_spin.DEC0.value)

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ SecretStorage==3.3.1
six==1.14.0
snowballstemmer==2.2.0
soupsieve==2.2.1
space-rocks==1.8.5
space-rocks==1.8.13
Sphinx==5.2.3
sphinx-basic-ng==1.0.0b1
sphinx-copybutton==0.5.0
Expand Down

0 comments on commit 82eadfd

Please sign in to comment.