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

Loading…
Cancel
Save