noyainrain / listling

Web app to make and edit lists collaboratively.
https://listling.org/
GNU Affero General Public License v3.0
34 stars 8 forks source link

Add item date / time #99

Closed noyainrain closed 3 years ago

noyainrain commented 3 years ago

Add optional time attribute to Item.

Draft:

class List:
    """
    .. describe:: features

       Available features are ``check``, ``vote``, ``value``, ``time``, ``location`` and ``play``.
    """

class Item:
    """
    .. describe:: time

       *datetime* or *date* of the item. May be ``null``.
    """

    time: date | None

# Future reference

class Item:
    """
    .. describe:: end_time

       End *datetime* or *date* of the item. May be ``null``.
    """

    end_time: date | None