Commit b48ddaeb authored by Maxime Emschwiller's avatar Maxime Emschwiller

style: fix styling issues

parent f5a3df2c
......@@ -60,14 +60,10 @@ def stats(request):
if dataset == "daily_connections":
daily_connections = DailyConnections.objects.filter(
date__gte=now_minus_365_days,
date__lt=now,
date__gte=now_minus_365_days, date__lt=now
)
raw_data = [
{
"date": dc.date.strftime("%Y-%m-%d"),
"nb_connections": dc.nb_connections
}
{"date": dc.date.strftime("%Y-%m-%d"), "nb_connections": dc.nb_connections}
for dc in daily_connections
]
......@@ -75,8 +71,7 @@ def stats(request):
elif dataset == "daily_exchange_contributions":
daily_contributions = DailyExchangeContributionsInfo.objects.filter(
date__gte=now_minus_365_days,
date__lt=now,
date__gte=now_minus_365_days, date__lt=now
).prefetch_related("university")
raw_data = [
......
......@@ -6,12 +6,12 @@ In `frontend/src/utils/majorMinorMappings.js`, each change has to be added as a
```js
export const majorMapping = {
oldMajorName: "newMajorName"
oldMajorName: "newMajorName",
};
export const minorMapping = {
majorName: {
oldMinorName: "newMinorName"
}
oldMinorName: "newMinorName",
},
};
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment