Skip to content

Commit

Permalink
[frontend/parsable_text] fix hidden-until behaviour when time is passed
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonygego committed Sep 13, 2022
1 parent 300e7ce commit d495824
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inginious/frontend/parsable_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ class CustomAdmonition(CustomBaseAdmonition):
class HiddenUntilDirective(Directive, object):
required_arguments = 1
has_content = True
optional_arguments = 0
optional_arguments = 1
option_spec = {}

def run(self):
self.assert_has_content()

hidden_until = self.arguments[0]
hidden_until = " ".join(self.arguments) #join date and optional time argument
try:
hidden_until = parse_date(hidden_until)
except:
Expand Down

0 comments on commit d495824

Please sign in to comment.