summaryrefslogtreecommitdiff
path: root/server/src/server.cc
diff options
context:
space:
mode:
authordeva <deva>2009-05-11 11:57:50 +0000
committerdeva <deva>2009-05-11 11:57:50 +0000
commit1435d2c664f1c7696cbde2b41df6362f99d1df2c (patch)
tree302e686f55fc59ae28229df9c705c49d5c8a4dd8 /server/src/server.cc
parent9b5c88df87d285995fd0c483de369cd7854893b1 (diff)
New 'header' in each journal commit, taken from the course.
Diffstat (limited to 'server/src/server.cc')
-rw-r--r--server/src/server.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/src/server.cc b/server/src/server.cc
index 4a17954..a0dbaa4 100644
--- a/server/src/server.cc
+++ b/server/src/server.cc
@@ -102,14 +102,13 @@ static std::string handleTransaction(Transaction *transaction,
commit.fields["journal.resume"] = resume;
db->commitTransaction(transaction->user, transaction->cpr, *macro, commit.fields);
-
bool store_in_journal = true;
// We always need to store in journal!
// macro->resume.attributes.find("store_in_journal") != macro->resume.attributes.end() &&
// macro->resume.attributes["store_in_journal"] == "true";
if(resume != "" && store_in_journal) {
- journalwriter.addEntry(*transaction, commit, resume);
+ journalwriter.addEntry(*transaction, commit, resume, commit.course);
/*
journal_commit(transaction->cpr.c_str(), transaction->user.c_str(),
Conf::journal_commit_addr.c_str(), Conf::journal_commit_port,