Skip to content

Commit

Permalink
fix branches resource gb2312 encode
Browse files Browse the repository at this point in the history
  • Loading branch information
guohongze committed Jul 2, 2019
1 parent c071724 commit 6f9654d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion branches/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,6 @@ def resource_export(request):
writer.writerow([str2gb(br_name), str2gbk(r.branch.name if r.branch else None), str2gb(r.sn),
str2gb(r.name), str2gb(r.spec), str2gb(r.budget), str2gb(r.paid), str2gb(r.contract),
str2gb(r.contract_start), str2gb(r.contract_end),
str2gb(r.supplier), str2gb(r.service_phone), str2gb(r.owner if r.owner else None),
str2gb(r.supplier), r.service_phone, str2gb(r.owner if r.owner else None),
str2gb(r.owner.phone if r.owner else None),])
return response

0 comments on commit 6f9654d

Please sign in to comment.