This commit is contained in:
parent
dfdd636754
commit
9f1693029a
|
@ -92,7 +92,7 @@ def collect_from_type(spark):
|
|||
for row in df.rdd.collect():
|
||||
if row["from_type"]:
|
||||
data[row["from_type"]] = row["N"]
|
||||
mysql_execute("update datas set data = '{}' where `key` = 'from_type'".format( json.dumps(data) ))
|
||||
mysql_execute("update datas set data = '{}' where `key` = 'from_type'".format( json.dumps(data,ensure_ascii=False) ))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Reference in New Issue