Compare commits
2 Commits
0e82664096
...
fb9a11b850
| Author | SHA1 | Date | |
|---|---|---|---|
| fb9a11b850 | |||
| d4a9e92be7 |
@ -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',
|
||||||
|
|||||||
@ -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):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user