swag:auto-uptime-kuma Initial release of the mod

This commit is contained in:
Pawel Derehajlo
2023-08-05 20:49:23 +02:00
parent cc80a43d42
commit dbbeba055f
30 changed files with 402 additions and 95 deletions
+20
View File
@@ -0,0 +1,20 @@
def has_key_with_value(dictionary, key, value):
return key in dictionary and dictionary[key] == value
def merge_dicts(*dict_args):
result = {}
for dictionary in dict_args:
result.update(dictionary)
return result
def write_file(filename, content):
with open(filename, 'w+') as file:
file.write(content)
def read_file(filename):
with open(filename, 'r') as file:
content = file.read()
return content