Rework event provider and other changes #21
No reviewers
Labels
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
leming/kronos!21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "leming_rework-event-provider"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains multiple changes.
Regarding event provider rework:
Eventdata fromEventProvider.Changes unrelated to that, with no significant order:
ftofile.loggingsupport.os/strpaths withpathlib.@ -5,36 +5,39 @@ Discord connector to export events to one or more Discord communities (aka guild"""If we treat mobilizon as event_provider, shouldn't this be event_consumer?
Yes, yes it should. To be solved in some future PR.
@ -134,3 +141,3 @@template = env.get_template(template_name)now_paris = datetime.datetime.now(ZoneInfo("Europe/Paris")).strftime("%Y-%m-%d %H:%M")now_paris = datetime.now(ZoneInfo("Europe/Paris")).strftime("%Y-%m-%d %H:%M")I think we can move to Warsaw now.
@ -32,3 +35,4 @@TEMPLATES = {"templates/newsletter_template.html": "newsletter_events.html",}CREATOR_URL = "https://events.hs3.pl"Second time? There's already one in kronos-ui
I intend to merge
kronosandkronos-uiin the long run, right now TODO must do.Cool, but a short description could help understand why are we here :)
@ -0,0 +375,4 @@if __name__ == "__main__":logging.basicConfig(format="%(asctime)s %(levelname)s: %(message)s", level=logging.INFO)# TODO: executable part of this script is only for development purposes. Replace with tests.💚
@ -0,0 +247,4 @@List of events."""# TODO: this function seem weird - move responsiblity elsewhere?# Or add explicit method for Typst to get data?👍
@ -73,3 +89,3 @@"description": description,"physicalAddress": None,"picture": os.path.relpath(pic_path, start="src/typst"),"picture": pic_path.relative_to("src/path"),src/path?