We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Originally posted by pedrokarneiro May 23, 2023
Problem:
If you try to copy the solution, a 403 error will come up due to this absence.
Solution:
Add a utils.py to your solution with the following code:
` from datetime import datetime as dt
def format_date(dt_, fmt="%m/%d/%Y, %H:%M:%S"): return f"{dt_:{fmt}}"
def now(fmt="%m/%d/%Y, %H:%M:%S"): return format_date(dt.now(), fmt)
def remove_class(element, class_name): element.element.classList.remove(class_name)
def add_class(element, class_name): element.element.classList.add(class_name) `
The text was updated successfully, but these errors were encountered:
Fixed in #1485
Sorry, something went wrong.
WebReflection
No branches or pull requests
Discussed in #1482
Originally posted by pedrokarneiro May 23, 2023
Custom REPL demo is missing utils.py in the 'View code' tab.
Problem:
If you try to copy the solution, a 403 error will come up due to this absence.
Solution:
Add a utils.py to your solution with the following code:
`
from datetime import datetime as dt
def format_date(dt_, fmt="%m/%d/%Y, %H:%M:%S"):
return f"{dt_:{fmt}}"
def now(fmt="%m/%d/%Y, %H:%M:%S"):
return format_date(dt.now(), fmt)
def remove_class(element, class_name):
element.element.classList.remove(class_name)
def add_class(element, class_name):
element.element.classList.add(class_name)
`
The text was updated successfully, but these errors were encountered: