[algospot-judge] r221 committed - I don't know when Submitted field was removed..

0 views
Skip to first unread message

codesite...@google.com

unread,
Jul 11, 2010, 4:00:09 AM7/11/10
to algospo...@googlegroups.com
Revision: 221
Author: jongman
Date: Sat Jul 10 22:19:01 2010
Log: I don't know when Submitted field was removed..
http://code.google.com/p/algospot-judge/source/detail?r=221

Modified:
/trunk/vanillaapp/controllers/class.problemscontroller.php
/trunk/vanillaapp/settings/structure.php

=======================================
--- /trunk/vanillaapp/controllers/class.problemscontroller.php Sat Jul 10
22:18:17 2010
+++ /trunk/vanillaapp/controllers/class.problemscontroller.php Sat Jul 10
22:19:01 2010
@@ -198,6 +198,7 @@

$Values = $this->Form->FormValues();
assert($Values["Author"] == $this->Session->UserID);
+ $this->Form->SetFormValue("Submitted",
Gdn_Format::ToDateTime());
$this->Form->SetFormValue("Length",
strlen(preg_replace("/\s+/", "", $Values["Source"])));
$this->Form->SetFormValue("IsPublic", $this->Problem->State ==
ProblemState::PUBLISHED ? 1 : 0);

=======================================
--- /trunk/vanillaapp/settings/structure.php Sat Jul 10 22:18:45 2010
+++ /trunk/vanillaapp/settings/structure.php Sat Jul 10 22:19:01 2010
@@ -51,6 +51,7 @@

$Construct->Table("Submission")
->PrimaryKey("No")
+ ->Column("Submitted", "datetime")
->Column("Problem", "int", -1, "key")
->Column("IsPublic", "int", 0, "key")
->Column("Author", "int", -1, "key")

Reply all
Reply to author
Forward
0 new messages