Skip to content
No description, website, or topics provided.
Python
Branch: master
Clone or download
Latest commit de43f3c Nov 3, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore working and stuff Apr 16, 2019
Pipfile fix date calculation Jul 22, 2019
Pipfile.lock Bump werkzeug from 0.15.2 to 0.15.3 Nov 1, 2019
dates.py make script more user friendly Jul 24, 2019
readme.md add example output Apr 16, 2019

readme.md

About

Creates a copy / paste-able block for the bottom of assessments. Assumes that all assessments will close two weeks after they are due, with a sliding scale of dates to make it easy to determine how much of a penalty to apply based on a late submission.

Usage

Install using pipenv:

pipenv install

pipenv shell

Then run:

python dates.py

It will immediately ask you for a date; this is human aware. The following strings work:

5/4/19
May 4
may 4
may 4th
today
tomorrow
yesterday
etc...

The script will ask you to confirm that it correctly parsed what you put in, then answer y to continue. It will output a text block that you can then copy and paste into the description of the assessment.

Example output

What day is this assignment due? may 4
Interpreted date: May 04, 2019
Is this correct? (y/n) y
########################################

This assignment is due on May 04, 2019, and will close on May 18, 2019.

The late policy will apply on the following dates:

From May 04, 2019 -> May 07, 2019: 5% penalty

From May 07, 2019 -> May 10, 2019: 10% penalty

From May 10, 2019 -> May 14, 2019: 15% penalty

From May 14, 2019 -> May 18, 2019: 20% penalty

########################################
You can’t perform that action at this time.