Compare commits
No commits in common. "fb9a11b850a88111b937f8ddc5e6e23b31574641" and "0e826640964e7839e9e13dbffa40419529d68967" have entirely different histories.
fb9a11b850
...
0e82664096
@ -151,6 +151,8 @@ else:
|
||||
rf"(https|http)://(\w+\.|)(puckoprutt\.tech|{LOCAL_IP})$"
|
||||
]
|
||||
|
||||
|
||||
|
||||
TEMPLATES = [
|
||||
{
|
||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||
|
||||
@ -52,22 +52,7 @@ class Lunch_Heat_View(PuckoView):
|
||||
file = DAGENS_LUNCH_PATH / "heat.json"
|
||||
with open(file, "r") as f:
|
||||
data = json.load(f)
|
||||
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"]
|
||||
})
|
||||
serializer = self.serializer_class(data)
|
||||
return Response(serializer.data, status=200)
|
||||
|
||||
class Lunch_Max_View(PuckoView):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user