@@ -200,22 +200,22 @@ def strip_html(text: str) -> str:
200200
201201 files = "\n " .join (
202202 [
203- f' - { file_data [" key" ]} : { file_data [" links" ][ " self" ] } '
203+ f" - { file_data [' key' ]} : { file_data [' links' ][ ' self' ] } "
204204 for file_data in sorted (files , key = lambda x : x ["key" ])
205205 ]
206206 )
207207
208208 return "\n " .join (
209209 [
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' ]))} " ,
212212 "" ,
213213 f"Record ID : { self .id } " ,
214214 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 " ,
219219 "Description" ,
220220 "-----------" ,
221221 "" ,
@@ -628,10 +628,7 @@ def __str__(self) -> str:
628628
629629 datasets = "\n " .join (
630630 [
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 } " )
635632 for dataset in sorted (self .values (), key = lambda x : x .title )
636633 ]
637634 )
@@ -641,11 +638,11 @@ def __str__(self) -> str:
641638 return "\n " .join (
642639 [
643640 f"{ self ._configuration .community } " ,
644- f' { "=" * len (self ._configuration .community )} ' ,
641+ f" { '=' * len (self ._configuration .community )} " ,
645642 "" ,
646643 f"Datasets : { len (self )} " ,
647644 f"Synced : { synced } " ,
648- f' URL : { self ._data [" community" ][ " links" ][ " self_html" ] } ' ,
645+ f" URL : { self ._data [' community' ][ ' links' ][ ' self_html' ] } " ,
649646 "" ,
650647 "Datasets" ,
651648 "--------" ,
0 commit comments