Index: openacs-4/packages/xowf/lib/inclass-exam.wf =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowf/lib/Attic/inclass-exam.wf,v diff -u -N -r1.1.2.101 -r1.1.2.102 --- openacs-4/packages/xowf/lib/inclass-exam.wf 19 Oct 2022 18:21:48 -0000 1.1.2.101 +++ openacs-4/packages/xowf/lib/inclass-exam.wf 28 Oct 2022 12:52:41 -0000 1.1.2.102 @@ -335,11 +335,13 @@ if {$state eq "published"} { set src [$obj pretty_link -query m=qrcode] set qrCode [subst {
}] - set target_time [:QM exam_target_time \ - -manager $obj -base_time [$obj last_modified]] - set countdownHTML [$obj AM countdown_timer -target_time $target_time -id "countdown"] + set total_minutes [:QM total_minutes_for_exam -manager $obj] + if {$total_minutes > 1} { + set target_time [:QM exam_target_time \ + -manager $obj -base_time [$obj last_modified]] + set countdownHTML [$obj AM countdown_timer -target_time $target_time -id "countdown"] + } } - #ns_log notice ALL=$text append text [subst {
@@ -348,6 +350,7 @@
$countdownHTML
}] + #ns_log notice ALL=$text } set f [::xowiki::Form new \