From af75b864df450cd949215f3a042f8e4889e05698 Mon Sep 17 00:00:00 2001 From: bernd Date: Tue, 17 Oct 2023 21:05:03 +0200 Subject: [PATCH] =?UTF-8?q?api=5Ftemplate=20angepa=C3=9Ft=20und=20als=20va?= =?UTF-8?q?riable=20in=20den=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/server/apistatusd.py | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/source/server/apistatusd.py b/source/server/apistatusd.py index b15ab06..465ef7a 100755 --- a/source/server/apistatusd.py +++ b/source/server/apistatusd.py @@ -194,11 +194,6 @@ def change_status(status, timestamp, api_template, filename): return: boolean ''' logging.debug('Change status API') - # todo: use walrus operator := when migrating to python >= 3.8 - # data = read_api(filename) - # if data is False: - # return False - if os.access(filename, os.W_OK): logging.debug('API file is writable') with open(filename, 'w') as api_file: @@ -365,29 +360,27 @@ def main(): "open": False, "lastchange": 1563499131, "icon": { - "open":"https://status.krautspace.de/images/krautspace_pixelicon_open.png", - "closed":"https://status.krautspace.de/images/krautspace_pixelicon_closed.png" + "open":"https://status.krautspace.de/images/status-open.png", + "closed":"https://status.krautspace.de/images/status-closed.png" } }, "feeds": { "calendar": { "type": "ical", - "url": "https://kraut.space/krautspace.ics" + "url": "https://cloud.kraut.space/remote.php/dav/public-calendars/2EkPGt3PF6WwYsA3?export" } }, "contact": { - "mastodon": "https://chaos.social/@krautspace", + "mastodon": "@krautspace@chaos.social", "matrix": "#krautchan:matrix.kraut.space", "email": "office@krautspace.de" }, "issue_report_channels": [ - "mastodon", "matrix", "email" ], "projects": [ - "https://git.kraut.space", - "https://github.com/HackspaceJena/" + "https://git.kraut.space/Krautspace" ] }