Skip to content

Refactor nameday code #1293

@Toaster192

Description

@Toaster192

url = f"http://svatky.adresa.info/json?date={date.today().strftime('%d%m')}"

Looking at the code the duplication of cs and sk requests is quite a mess and could be just passed as a parameter or whatever.

Also the date argument of the API should be optional and default to current date but it seems that its UTC or something as it lags behind after midnight so perhaps we could message the author to fix this :clueless:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions