This commit is contained in:
Elijah McMorris 2023-08-26 19:36:15 +00:00
parent fdc0515939
commit 3143ecf70d
2 changed files with 25 additions and 9 deletions

View file

@ -347,17 +347,19 @@ impl Ark {
expressions.push( expressions.push(
col("ticker") col("ticker")
.str() .str()
.replace(lit("DKNG UW"), lit("DKNN"), true) .replace_all(lit(" FP"), lit(""), true)
.str() .str()
.replace(lit("NU UN"), lit("NU"), true) .replace_all(lit(" UQ"), lit(""), true)
.str() .str()
.replace(lit("DSY"), lit("DSY FP"), true) .replace_all(lit(" UF"), lit(""), true)
.str() .str()
.replace(lit("GRMN UN"), lit("GRMN"), true) .replace_all(lit(" UN"), lit(""), true)
.str() .str()
.replace(lit("ARCT UQ"), lit("ARCT"), true) .replace_all(lit(" UW"), lit(""), true)
.str() .str()
.replace(lit("PRNT UF"), lit("PRNT"), true), .replace(lit("DKNN"), lit("DKNG"), true)
.str()
.rstrip(None),
); );
expressions.push( expressions.push(
col("company") col("company")
@ -366,26 +368,40 @@ impl Ark {
.str() .str()
.replace_all(lit("- A"), lit(""), true) .replace_all(lit("- A"), lit(""), true)
.str() .str()
.replace_all(lit("-CL A"), lit(""), true) .replace_all(lit("CL A"), lit(""), true)
.str() .str()
.replace_all(lit("-CLASS A"), lit(""), true) .replace_all(lit("CLASS A"), lit(""), true)
.str() .str()
.replace_all(lit("Inc"), lit(""), true) .replace_all(lit("Inc"), lit(""), true)
.str() .str()
.replace_all(lit("INC"), lit(""), true) .replace_all(lit("INC"), lit(""), true)
.str() .str()
.replace_all(lit("incorporated"), lit(""), true)
.str()
.replace_all(lit("LTD"), lit(""), true) .replace_all(lit("LTD"), lit(""), true)
.str() .str()
.replace_all(lit("CORP"), lit(""), true) .replace_all(lit("CORP"), lit(""), true)
.str() .str()
.replace_all(lit("CORPORATION"), lit(""), true) .replace_all(lit("CORPORATION"), lit(""), true)
.str() .str()
.replace_all(lit("Corporation"), lit(""), true)
.str()
.replace_all(lit("- C"), lit(""), true)
.str()
.replace_all(lit("-"), lit(""), true)
.str()
.replace_all(lit(","), lit(""), true) .replace_all(lit(","), lit(""), true)
.str() .str()
.replace_all(lit("."), lit(""), true) .replace_all(lit("."), lit(""), true)
.str() .str()
.replace(lit("COINBASE GLOBAL"), lit("COINBASE"), true)
.str()
.replace(lit("Coinbase Global"), lit("Coinbase"), true)
.str()
.replace(lit("Blackdaemon"), lit("Blockdaemon"), true) .replace(lit("Blackdaemon"), lit("Blockdaemon"), true)
.str() .str()
.replace(lit("DISCOVERY"), lit("Dassault Systemes"), true)
.str()
.rstrip(None), .rstrip(None),
); );