|
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:
rubbergod/cogs/nameday/cog.py
Line 26 in 3ba9a12
Looking at the code the duplication of
csandskrequests is quite a mess and could be just passed as a parameter or whatever.Also the
dateargument 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: