OSDN Git Service
(root)
/
shogi-server
/
shogi-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8915dcc
)
Ignore games of players who have SAME id.
author
beatles
<beatles@b8c68f68-1e22-0410-b08e-880e1f8202b4>
Fri, 8 Sep 2006 11:10:47 +0000
(11:10 +0000)
committer
beatles
<beatles@b8c68f68-1e22-0410-b08e-880e1f8202b4>
Fri, 8 Sep 2006 11:10:47 +0000
(11:10 +0000)
mk_rate
patch
|
blob
|
history
diff --git
a/mk_rate
b/mk_rate
index
67fae39
..
e520d6b
100755
(executable)
--- a/
mk_rate
+++ b/
mk_rate
@@
-418,8
+418,11
@@
def grep(file)
end
if /^'rating:(.*)$/ =~ str
black_id, white_id = $1.split(":").map {|a| a.strip}
- add(black_mark, identify_id(black_id),
- identify_id(white_id), white_mark, time)
+ black_id = identify_id(black_id)
+ white_id = identify_id(white_id)
+ unless black_id == white_id
+ add(black_mark, black_id, white_id, white_mark, time)
+ end
end
end