Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
Nella Accelerando committed Jan 28, 2025
1 parent 9a43790 commit f59dde2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/load_tx_cypher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,7 @@ pub async fn impl_batch_tx_insert(
.get("unchanged_accounts")
.context("no unchanged_accounts field")?;

dbg!(&list_str);
let cypher_string = write_batch_tx_string(&list_str);
dbg!(&cypher_string);

// Execute the query
let cypher_query = query(&cypher_string);
Expand Down
4 changes: 3 additions & 1 deletion src/schema_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ impl WarehouseTxMaster {
};
let mut coins_literal = "NULL".to_string();
if let Some(c) = &self.relation_label.get_coins_human_readable() {
coins_literal = format!("{:.2}", c);
if c > &0.0 {
coins_literal = format!("{:.2}", c);
}
};
format!(
r#"{{ args: {tx_args}, coins: {coins_literal}, tx_hash: "{}", block_datetime: datetime("{}"), block_timestamp: {}, relation: "{}", function: "{}", sender: "{}", recipient: "{}", framework_version: "{}"}}"#,
Expand Down

0 comments on commit f59dde2

Please sign in to comment.