Compare commits

...

2 Commits

Author SHA1 Message Date
fb9a11b850 rewrote varda dict 2025-02-23 05:52:41 +01:00
d4a9e92be7 beutified the settings 2025-02-23 05:52:06 +01:00
2 changed files with 16 additions and 3 deletions

View File

@ -151,8 +151,6 @@ else:
rf"(https|http)://(\w+\.|)(puckoprutt\.tech|{LOCAL_IP})$" rf"(https|http)://(\w+\.|)(puckoprutt\.tech|{LOCAL_IP})$"
] ]
TEMPLATES = [ TEMPLATES = [
{ {
'BACKEND': 'django.template.backends.django.DjangoTemplates', 'BACKEND': 'django.template.backends.django.DjangoTemplates',

View File

@ -52,7 +52,22 @@ class Lunch_Heat_View(PuckoView):
file = DAGENS_LUNCH_PATH / "heat.json" file = DAGENS_LUNCH_PATH / "heat.json"
with open(file, "r") as f: with open(file, "r") as f:
data = json.load(f) data = json.load(f)
serializer = self.serializer_class(data) serializer = self.serializer_class({
"place": data["place"],
"about": data["about"],
"monday": data["monday"],
"tuesday": data["tuesday"],
"wednesday": data["wednesday"],
"thursday": data["thursday"],
"friday": data["friday"],
"alltid": data["always"],
"grillat": data["bbq"],
"burgare": data["burger"],
"pasta": data["pasta"],
"fisken": data["fish"],
"kaninen": data["green"],
"sallad": data["salad"]
})
return Response(serializer.data, status=200) return Response(serializer.data, status=200)
class Lunch_Max_View(PuckoView): class Lunch_Max_View(PuckoView):