调整个性化路径

This commit is contained in:
pengtao 2019-10-23 16:14:46 +08:00
parent c5c1892868
commit 0bf8ed028f
2 changed files with 17 additions and 17 deletions

28
.idea/workspace.xml generated
View File

@ -52,8 +52,8 @@
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/data_channel/produce_ss_csv.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="429">
<caret line="27" column="13" selection-start-line="27" selection-start-column="13" selection-end-line="27" selection-end-column="13" />
<state relative-caret-position="198">
<caret line="23" column="23" selection-start-line="23" selection-start-column="23" selection-end-line="23" selection-end-column="23" />
<folding>
<element signature="e#24#34#0" expanded="true" />
</folding>
@ -230,14 +230,7 @@
<workItem from="1571371398024" duration="626000" />
<workItem from="1571396636592" duration="1545000" />
<workItem from="1571812301360" duration="2782000" />
<workItem from="1571816131529" duration="2207000" />
</task>
<task id="LOCAL-00004" summary="fix">
<created>1570882087553</created>
<option name="number" value="00004" />
<option name="presentableId" value="LOCAL-00004" />
<option name="project" value="LOCAL" />
<updated>1570882087553</updated>
<workItem from="1571816131529" duration="2262000" />
</task>
<task id="LOCAL-00005" summary="fix">
<created>1570882247813</created>
@ -575,11 +568,18 @@
<option name="project" value="LOCAL" />
<updated>1571818319380</updated>
</task>
<option name="localTasksCounter" value="53" />
<task id="LOCAL-00053" summary="调整个性化路径">
<created>1571818432680</created>
<option name="number" value="00053" />
<option name="presentableId" value="LOCAL-00053" />
<option name="project" value="LOCAL" />
<updated>1571818432680</updated>
</task>
<option name="localTasksCounter" value="54" />
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="47572000" />
<option name="totallyTimeSpent" value="47627000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1936" height="1066" extended-state="6" />
@ -743,8 +743,8 @@
</entry>
<entry file="file://$PROJECT_DIR$/data_channel/produce_ss_csv.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="429">
<caret line="27" column="13" selection-start-line="27" selection-start-column="13" selection-end-line="27" selection-end-column="13" />
<state relative-caret-position="198">
<caret line="23" column="23" selection-start-line="23" selection-start-column="23" selection-end-line="23" selection-end-column="23" />
<folding>
<element signature="e#24#34#0" expanded="true" />
</folding>

View File

@ -21,8 +21,8 @@ class ProduceSSCsv:
self.gameid_list = [1004, 1001, 2001, 1011]
self.channelid = 6001
def write2csv(self, gameid, channelid, data):
filename = f"{self.base_path}/{gameid}_{channelid}__button_name.csv"
def write2csv(self, data):
filename = f"{self.base_path}/all__button_name.csv"
with open(filename, 'w') as f:
f.write("button_name,button_name_cn\n")
#print(data)
@ -33,7 +33,7 @@ class ProduceSSCsv:
def run(self):
for gameid in self.gameid_list:
data = get_mp_interface(gameid, self.channelid)
self.write2csv(gameid, self.channelid, data)
self.write2csv(data)
if __name__ == "__main__":