@@ -63,22 +63,25 @@ struct DatasetVersion
6363 size = _get_json (json, " size" , Int; msg)
6464 timestamp = _parse_tz (_get_json (json, " date" , String; msg); msg)
6565 blobstore_path = _get_json (json, " blobstore_path" , String; msg)
66- new ((owner, name), version, size, timestamp, blobstore_path)
66+ return new ((owner, name), version, size, timestamp, blobstore_path)
6767 end
6868end
6969
7070function Base. show (io:: IO , dsv:: DatasetVersion )
7171 owner, name = dsv. _dsref
7272 dsref = string (" (\" " , owner, " \" , \" " , name, " \" )" )
7373 print (io, " JuliaHub.dataset($dsref ).versions[$(dsv. id) ]" )
74+ return nothing
7475end
76+
7577function Base. show (io:: IO , :: MIME"text/plain" , dsv:: DatasetVersion )
7678 owner, name = dsv. _dsref
7779 printstyled (io, " DatasetVersion:" ; bold= true )
7880 print (io, " " , name, " @ v" , dsv. id)
7981 print (io, " \n owner: " , owner)
8082 print (io, " \n timestamp: " , dsv. timestamp)
8183 print (io, " \n size: " , dsv. size, " bytes" )
84+ return nothing
8285end
8386
8487"""
0 commit comments