@@ -200,22 +200,22 @@ def strip_html(text: str) -> str:
200
200
201
201
files = "\n " .join (
202
202
[
203
- f' - { file_data [" key" ]} : { file_data [" links" ][ " self" ] } '
203
+ f" - { file_data [' key' ]} : { file_data [' links' ][ ' self' ] } "
204
204
for file_data in sorted (files , key = lambda x : x ["key" ])
205
205
]
206
206
)
207
207
208
208
return "\n " .join (
209
209
[
210
- f' { metadata [" title" ]} - { metadata [" version" ] } ' ,
211
- f' { "=" * (len (self .title ) + 3 + len (metadata [" version" ]))} ' ,
210
+ f" { metadata [' title' ]} - { metadata [' version' ] } " ,
211
+ f" { '=' * (len (self .title ) + 3 + len (metadata [' version' ]))} " ,
212
212
"" ,
213
213
f"Record ID : { self .id } " ,
214
214
f"Authors : { authors } " ,
215
- f' License : { metadata [" license" ][ "id" ] } ' ,
216
- f' DOI : { metadata [" doi" ] } ' ,
217
- f' Publication Date : { metadata [" publication_date" ] } ' ,
218
- f' URL : { self ._data [" links" ][ " self_html" ]} \n ' ,
215
+ f" License : { metadata [' license' ][ 'id' ] } " ,
216
+ f" DOI : { metadata [' doi' ] } " ,
217
+ f" Publication Date : { metadata [' publication_date' ] } " ,
218
+ f" URL : { self ._data [' links' ][ ' self_html' ]} \n " ,
219
219
"Description" ,
220
220
"-----------" ,
221
221
"" ,
@@ -628,10 +628,7 @@ def __str__(self) -> str:
628
628
629
629
datasets = "\n " .join (
630
630
[
631
- (
632
- f"[{ 'x' if dataset .synced () else ' ' } ] "
633
- f"{ dataset .id } : { dataset .title } "
634
- )
631
+ (f"[{ 'x' if dataset .synced () else ' ' } ] { dataset .id } : { dataset .title } " )
635
632
for dataset in sorted (self .values (), key = lambda x : x .title )
636
633
]
637
634
)
@@ -641,11 +638,11 @@ def __str__(self) -> str:
641
638
return "\n " .join (
642
639
[
643
640
f"{ self ._configuration .community } " ,
644
- f' { "=" * len (self ._configuration .community )} ' ,
641
+ f" { '=' * len (self ._configuration .community )} " ,
645
642
"" ,
646
643
f"Datasets : { len (self )} " ,
647
644
f"Synced : { synced } " ,
648
- f' URL : { self ._data [" community" ][ " links" ][ " self_html" ] } ' ,
645
+ f" URL : { self ._data [' community' ][ ' links' ][ ' self_html' ] } " ,
649
646
"" ,
650
647
"Datasets" ,
651
648
"--------" ,
0 commit comments