Skip to content

Commit

Permalink
fix numeric ids being chosen for relations
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesamcl committed Aug 14, 2024
1 parent 2fe1c49 commit e99928e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions 02_assign_ids/grebi_identifiers2groups/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,6 @@ fn main() {

for entity in sorted_ids {
if is_first_value {
writer.write_all(entity.as_slice()).unwrap();
writer.write_all("\t".as_bytes()).unwrap();
is_first_value = false;
} else {
writer.write_all("\t".as_bytes()).unwrap();
Expand Down Expand Up @@ -183,7 +181,7 @@ fn id_score(id:&[u8]) -> i32 {

for c in id {
if c.is_ascii_alphabetic() {
score = score + 1;
score = score - 1;
}
}

Expand Down

0 comments on commit e99928e

Please sign in to comment.