diff options
author | Michael Wittig <michael.wittig@fu-berlin.de> | 2010-10-14 20:32:21 +0200 |
---|---|---|
committer | Michael Wittig <michael.wittig@fu-berlin.de> | 2010-10-14 20:32:21 +0200 |
commit | f12f458f6a15704e1028445368e7d0a599279f97 (patch) | |
tree | 371e3288d6731997c22858a236797b38b9f78705 /server | |
parent | 2a52f8a236794a2cf3022c43aabb41e7124bad65 (diff) | |
download | erlang-f12f458f6a15704e1028445368e7d0a599279f97.tar.gz erlang-f12f458f6a15704e1028445368e7d0a599279f97.tar.xz erlang-f12f458f6a15704e1028445368e7d0a599279f97.zip |
fixed the votes_countup, now rdy to present
Diffstat (limited to 'server')
-rw-r--r-- | server/cldb.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/cldb.erl b/server/cldb.erl index f6c7821..d1daaa9 100644 --- a/server/cldb.erl +++ b/server/cldb.erl @@ -63,7 +63,7 @@ decVote(User) -> incVote(User) -> F = fun() -> - [Head|_] = ask(User, '_'), + {atomic, [Head|_]} = ask(User, '_'), Votes = Head#user.votes + 1, New = Head#user{votes = Votes}, mnesia:write(New) |