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})$"
|
rf"(https|http)://(\w+\.|)(puckoprutt\.tech|{LOCAL_IP})$"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
TEMPLATES = [
|
TEMPLATES = [
|
||||||
{
|
{
|
||||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||||
|
|||||||
@ -52,22 +52,7 @@ 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({
|
serializer = self.serializer_class(data)
|
||||||
"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