#add message

This commit is contained in:
xieshen 2021-04-02 16:53:16 +08:00
parent 289589b5fd
commit c1b8d13815
1 changed files with 2 additions and 2 deletions

View File

@ -520,8 +520,8 @@ def backstage_data_download(request):
results.append(o_qita) results.append(o_qita)
# print(results) # print(results)
t = int(time.time()) t = int(time.time())
os.popen('mkdir /var/www/p3/newmediamonitoring/static/upload/%s' % (t)) os.popen('mkdir /var/www/p3/newmediamonitoring/static/upload')
f = '/var/www/p3/newmediamonitoring/static/upload/%s' % (t) f = '/var/www/p3/newmediamonitoring/static/upload'
with open(f+'/'+user.username+'.csv','w', newline='',encoding='utf-8') as csvfile: with open(f+'/'+user.username+'.csv','w', newline='',encoding='utf-8') as csvfile:
writer = csv.writer(csvfile) writer = csv.writer(csvfile)
writer.writerow(["类型","名称", "单位", "别名", "状态", "ID", "关注量","新媒体标识码","功能","文章URL"]) writer.writerow(["类型","名称", "单位", "别名", "状态", "ID", "关注量","新媒体标识码","功能","文章URL"])