@@ -294,9 +294,10 @@ def download_annotation_archive(self, project_id: str, dest_path: Union[str, Pat
294
294
url = response .headers ["Location" ]
295
295
response2 = self .download (url , dest_path )
296
296
logger .info (
297
- "SimpleアノテーションZIPファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', file='%s'" ,
297
+ "SimpleアノテーションZIPファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', Content-Length='%s', file='%s'" ,
298
298
project_id ,
299
299
response2 .headers .get ("Last-Modified" ),
300
+ response2 .headers .get ("Content-Length" ),
300
301
dest_path ,
301
302
)
302
303
return url
@@ -325,9 +326,10 @@ def download_full_annotation_archive(self, project_id: str, dest_path: Union[str
325
326
url = response .headers ["Location" ]
326
327
response2 = self .download (url , dest_path )
327
328
logger .info (
328
- "FullアノテーションZIPファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', file='%s'" ,
329
+ "FullアノテーションZIPファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', Content-Length='%s', file='%s'" ,
329
330
project_id ,
330
331
response2 .headers .get ("Last-Modified" ),
332
+ response2 .headers .get ("Content-Length" ),
331
333
dest_path ,
332
334
)
333
335
return url
@@ -1610,9 +1612,10 @@ def download_project_inputs_url(self, project_id: str, dest_path: Union[str, Pat
1610
1612
url = content ["url" ]
1611
1613
response2 = self .download (url , dest_path )
1612
1614
logger .info (
1613
- "入力データ全件ファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', file='%s'" ,
1615
+ "入力データ全件ファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', Content-Length='%s', file='%s'" ,
1614
1616
project_id ,
1615
1617
response2 .headers .get ("Last-Modified" ),
1618
+ response2 .headers .get ("Content-Length" ),
1616
1619
dest_path ,
1617
1620
)
1618
1621
return url
@@ -1635,9 +1638,10 @@ def download_project_tasks_url(self, project_id: str, dest_path: Union[str, Path
1635
1638
url = content ["url" ]
1636
1639
response2 = self .download (url , dest_path )
1637
1640
logger .info (
1638
- "タスク全件ファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', file='%s'" ,
1641
+ "タスク全件ファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', Content-Length='%s', file='%s'" ,
1639
1642
project_id ,
1640
1643
response2 .headers .get ("Last-Modified" ),
1644
+ response2 .headers .get ("Content-Length" ),
1641
1645
dest_path ,
1642
1646
)
1643
1647
return url
@@ -1667,9 +1671,10 @@ def download_project_inspections_url(self, project_id: str, dest_path: Union[str
1667
1671
url = content ["url" ]
1668
1672
response2 = self .download (url , dest_path )
1669
1673
logger .info (
1670
- "検査コメント全件ファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', file='%s'" ,
1674
+ "検査コメント全件ファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', Content-Length='%s', file='%s'" ,
1671
1675
project_id ,
1672
1676
response2 .headers .get ("Last-Modified" ),
1677
+ response2 .headers .get ("Content-Length" ),
1673
1678
dest_path ,
1674
1679
)
1675
1680
return url
@@ -1691,9 +1696,10 @@ def download_project_comments_url(self, project_id: str, dest_path: Union[str, P
1691
1696
url = content ["url" ]
1692
1697
response = self .download (url , dest_path )
1693
1698
logger .info (
1694
- "コメント全件ファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', file='%s'" ,
1699
+ "コメント全件ファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', Content-Length='%s', file='%s'" ,
1695
1700
project_id ,
1696
1701
response .headers .get ("Last-Modified" ),
1702
+ response .headers .get ("Content-Length" ),
1697
1703
dest_path ,
1698
1704
)
1699
1705
return url
@@ -1716,9 +1722,10 @@ def download_project_task_history_events_url(self, project_id: str, dest_path: U
1716
1722
url = content ["url" ]
1717
1723
response2 = self .download (url , dest_path )
1718
1724
logger .info (
1719
- "タスク履歴イベント全件ファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', file='%s'" ,
1725
+ "タスク履歴イベント全件ファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', Content-Length='%s', file='%s'" ,
1720
1726
project_id ,
1721
1727
response2 .headers .get ("Last-Modified" ),
1728
+ response2 .headers .get ("Content-Length" ),
1722
1729
dest_path ,
1723
1730
)
1724
1731
return url
@@ -1741,9 +1748,10 @@ def download_project_task_histories_url(self, project_id: str, dest_path: Union[
1741
1748
url = content ["url" ]
1742
1749
response2 = self .download (url , dest_path )
1743
1750
logger .info (
1744
- "タスク履歴全件ファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', file='%s'" ,
1751
+ "タスク履歴全件ファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', Content-Length='%s', file='%s'" ,
1745
1752
project_id ,
1746
1753
response2 .headers .get ("Last-Modified" ),
1754
+ response2 .headers .get ("Content-Length" ),
1747
1755
dest_path ,
1748
1756
)
1749
1757
return url
0 commit comments