fetching and reading calendar
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
import logging
|
||||
from pathlib import Path
|
||||
|
||||
import platformdirs
|
||||
|
||||
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
PROGRAM_NAME: str = "publish-meetups"
|
||||
PROGRAM_DATA_DIR: str = platformdirs.user_config_path(appname=PROGRAM_NAME)
|
||||
PROGRAM_DATA_DIR: Path = platformdirs.user_config_path(appname=PROGRAM_NAME)
|
||||
PROGRAM_DATA_DIR.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
ICS_FILE = Path(PROGRAM_DATA_DIR / "meetup.ics")
|
||||
|
||||
__all__ = ["prompt", "PROGRAM_DATA_DIR", "PROGRAM_NAME", "errors", "config"]
|
||||
|
||||
__all__ = ["prompt", "PROGRAM_DATA_DIR", "PROGRAM_NAME", "errors", "config", "ICS_FILE"]
|
||||
|
||||
@@ -11,6 +11,7 @@ _config: dict = {
|
||||
"mastodon",
|
||||
"twitter",
|
||||
],
|
||||
"ics_url": "",
|
||||
"mastodon": {},
|
||||
"twitter": {},
|
||||
"lemmy": {},
|
||||
|
||||
Reference in New Issue
Block a user