master
WuXianChaoPin 7 years ago
parent f0e5adb105
commit ea41314e0b
  1. 4
      PixivSearch/thrift/QueryComment/Server.py

@ -11,7 +11,7 @@ from PixivSearch.thrift.QueryComment import QueryComment
from PixivSearch.thrift.QueryComment.QueryComment import Iface
commentPath = '/root/PixivSearch/PixivSearch/thrift/tmpFile/comment'
#commentPath='/home/hua/下载/comment'
class Server(Iface):
def commentSumList(self, cids):
@ -31,7 +31,7 @@ class Server(Iface):
for cid in cids:
downloadXml(path, cid,
histroy=False)
zipFile = '{path}/{fileName}.zip'.format(path=path,fileName=fileName)
zipFile = '{commentPath}/{fileName}.zip'.format(commentPath=commentPath,fileName=fileName)
print(zipFile)
Util.zip(path, zipFile)
if os.path.isfile(zipFile):

Loading…
Cancel
Save